/* Global Resets and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
}

/* Sidebar Styling */
#sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: rgb(36, 38, 41); /* Warna biru tua yang lebih modern */
    padding: 20px 0;
    color: white;
}

#sidebar h4 {
    padding: 0 20px;
}

#sidebar .nav {
    flex-grow: 1; /* Mendorong item di bawahnya ke dasar */
}

#sidebar .nav-link {
    color: #ecf0f1; /* Warna teks yang lebih lembut */
    padding: 15px 25px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
}

#sidebar .nav-link i {
    margin-right: 12px;
    width: 20px; /* Lebar ikon tetap */
    text-align: center;
}

#sidebar .nav-link:hover {
    background-color: #34495e;
    color: #ffffff;
}

#sidebar .nav-link.active {
    background-color: #3F7D58; /* Warna hijau toska yang cerah */
    color: #ffffff;
    font-weight: bold;
}

#logoutBtn {
    background-color: #e74c3c;
    border: none;
    margin: 10px 20px 0; /* Memberi jarak dari item di atasnya */
}

#logoutBtn:hover {
    background-color: #c0392b;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;
    padding: 25px;
    min-height: 100vh;
}

/* Page Container Styling */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Component Styling */
.card {
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 8px;
}

.dashboard-header {
    background: linear-gradient(90deg, #3F7D58, #326145); /* Gradient yang senada dengan sidebar */
    color: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-header i {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Specific Card Styles */
.status-card {
    text-align: center;
    padding: 25px;
}

.status-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #3F7D58;
}

.status-card h3 {
    font-size: 1.1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-card h4 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    word-break: break-word;
}

.table thead th {
    background-color: #f2f5f7;
    border-bottom: 2px solid #e3e9ed;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td, .table th {
    vertical-align: middle;
}

/* Pagination Styling */
.pagination .page-link {
    color: #3F7D58;
    border-radius: 50px !important; /* Membuat link bulat */
    margin: 0 3px;
    border: 1px solid #ddd;
}

.pagination .page-link:hover {
    background-color: #f1f1f1;
}

.pagination .page-item.active .page-link {
    background-color: #3F7D58;
    border-color: #3F7D58;
    color: white;
    box-shadow: 0 2px 5px rgba(26, 188, 156, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: transparent;
}

/* Process Page Card Specifics */
#processCardContainer .card-header {
    background-color: #f8f9fa;
}
#processCardContainer .table-sm th,
#processCardContainer .table-sm td {
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: column;
    }

    #sidebar .nav {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    #sidebar .nav-link {
        flex-grow: 1;
        text-align: center;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .dashboard-header h2 {
        font-size: 1.2rem;
    }
}

