:root {
    --primary-color: #009000;
    --primary-dark: #007000;
    --primary-light: #00b000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.login-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-left i {
    font-size: 80px;
    margin-bottom: 20px;
}

.login-right {
    padding: 60px 40px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 144, 0, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Dashboard Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
}

.navbar {
    padding: 15px 10px;
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,.04);
}

.content-area {
    padding: 30px;
}

.stat-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.green {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stat-card.blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-card.orange {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.stat-card.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-card i {
    font-size: 40px;
    opacity: 0.8;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.badge {
    padding: 5px 10px;
}

#sidebarCollapse {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

#sidebarCollapse:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
}
/* DataTables Custom Styling */
    .dataTables_wrapper {
        padding: 20px 0;
    }

    /* DataTables Header - Length and Search */
    .dataTables_wrapper .row:first-child {
        margin-bottom: 20px;
    }

    .dataTables_length {
        float: left;
    }

    .dataTables_length label {
        font-weight: 500;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dataTables_length select {
        padding: 5px 10px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        background-color: white;
        cursor: pointer;
        margin: 0 5px;
    }

    .dataTables_length select:focus {
        border-color: #009000;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 144, 0, 0.25);
    }

    .dataTables_filter {
        float: right;
    }

    .dataTables_filter label {
        font-weight: 500;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dataTables_filter input {
        padding: 8px 15px;
        border: 1px solid #ced4da;
        border-radius: 5px;
        width: 250px;
        margin-left: 8px;
    }

    .dataTables_filter input:focus {
        border-color: #009000;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 144, 0, 0.25);
    }

    /* DataTables Footer - Info and Pagination */
    .dataTables_wrapper .row:last-child {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #dee2e6;
    }

    .dataTables_info {
        float: left;
        padding-top: 8px;
        font-weight: 500;
        color: #6c757d;
    }

    .dataTables_paginate {
        float: right;
    }

    .dataTables_paginate .pagination {
        margin: 0;
        gap: 5px;
    }

    .dataTables_paginate .paginate_button {
        padding: 6px 12px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        background-color: white;
        color: #495057;
        cursor: pointer;
        transition: all 0.3s;
        margin: 0 2px;
    }

    .dataTables_paginate .paginate_button:hover {
        background-color: #009000;
        color: white;
        border-color: #009000;
    }

    .dataTables_paginate .paginate_button.current {
        background-color: #009000;
        color: white;
        border-color: #009000;
        font-weight: 600;
    }

    .dataTables_paginate .paginate_button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .dataTables_paginate .paginate_button.disabled:hover {
        background-color: white;
        color: #495057;
        border-color: #dee2e6;
    }

    /* Table Styling */
    table.dataTable {
        border-collapse: collapse !important;
    }

    table.dataTable thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #009000;
        padding: 12px;
    }

    table.dataTable tbody td {
        padding: 12px;
        vertical-align: middle;
    }

    table.dataTable tbody tr:hover {
        background-color: #f8f9fa;
    }

    /* Action Buttons */
    .btn-action {
        padding: 6px 10px;
        border-radius: 5px;
        transition: all 0.3s;
    }

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }