:root {
    --primary-teal: #00677A;
    --secondary-green: #D9E3C0;
    --bg-light: #F5F7F0;
    --bg-white: #FFFFFF;
    --bg-gray-light: #FAFBF7;
    --text-dark: #2C3E40; 
    --text-gray: #5A6E73;
    --text-light: #8A9EA3;
    --border-light: #E8EDE0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 103, 122, 0.12);
    --header-height: 70px;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow: hidden;
}

/* ========== LOGIN PAGE ========== */
.login-container {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    padding: 2rem;
    text-align: center;
}

.login-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h4 {
    margin: 0;
    font-weight: 600;
    color: white;
    font-size: 1.25rem;
}

.login-header h4 i {
    margin-right: 8px;
}

.login-body {
    padding: 2rem;
}

.login-body .form-control {
    background-color: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.login-body .form-control:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 122, 0.15);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    border: none;
    padding: 0.85rem;
    font-weight: 600;
    width: 100%;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0080a0, var(--primary-teal));
    color: white;
    box-shadow: var(--shadow-hover);
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ========== TOP HEADER - REFINED ========== */
.top-header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand Logo and Text in Header */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 0;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.header-brand-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin: 0;
    line-height: 1.3;
}

.header-brand-text small {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Menu Toggle Button */
.menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--primary-teal);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.menu-toggle:hover {
    background: #004d5c;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.menu-toggle i {
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========== SIDEBAR - HOVER EXPAND ========== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #004d5c 0%, #003d4a 100%);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    z-index: 1050;
    transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop hover to show sidebar */
@media (min-width: 769px) {
    .menu-toggle:hover ~ .sidebar,
    .sidebar:hover {
        left: 0;
    }
    
    /* Push main content when sidebar expands */
    .dashboard-container:has(.sidebar:hover) .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* Mobile sidebar toggle */
.sidebar.show-sidebar {
    left: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* Sidebar Brand - Hidden on desktop (already in header) */
.sidebar-brand {
    display: none;
}

/* Sidebar Navigation Wrapper */
.sidebar-nav-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
    margin-top: 5px;
}

.sidebar-nav-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-nav-wrapper::-webkit-scrollbar-thumb {
    background: var(--secondary-green);
    border-radius: 10px;
}

.nav-item {
    margin: 4px 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    margin: 0 12px;
    border-radius: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.nav-link.active {
    color: var(--secondary-green);
    background: rgba(217, 227, 192, 0.18);
    border-left: 3px solid var(--secondary-green);
    border-radius: 14px 0 0 14px;
    margin-left: 0;
    padding-left: 1.7rem;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--header-height) + 24px) 24px 24px 24px;
    background-color: var(--bg-light);
    min-height: 100vh;

    /* IMPORTANT */
    margin-left: 0 !important;
    transition: none !important;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}
/* Desktop hover to show sidebar */
@media (min-width: 769px) {

    .menu-toggle:hover ~ .sidebar,
    .sidebar:hover {
        left: 0;
    }

}
.main-content::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--primary-teal);
    border-radius: 10px;
}

/* ========== PROFILE DROPDOWN ========== */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.profile-btn:hover {
    background: rgba(0, 103, 122, 0.08);
}

.profile-btn i {
    font-size: 2rem;
}

.profile-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-white);
    min-width: 240px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    display: none;
    z-index: 1100;
    border: 1px solid var(--border-light);
}

.profile-menu.show-profile-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.profile-name {
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-menu hr {
    margin: 8px 0;
    border-color: var(--border-light);
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.profile-menu a:hover {
    background: rgba(0, 103, 122, 0.08);
    color: var(--primary-teal);
}

.profile-menu a i {
    width: 20px;
    color: var(--primary-teal);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CARDS ========== */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: linear-gradient(135deg, rgba(0, 103, 122, 0.03), transparent);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 0;
    color: var(--primary-teal);
}

.card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Dashboard Stats Cards */
.dashboard-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    margin-bottom: 0;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-hover);
}

.card-icon-wrapper {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(0, 103, 122, 0.1), rgba(217, 227, 192, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon {
    font-size: 1.75rem;
    color: var(--primary-teal);
}

.card-stats {
    flex: 1;
}

.card-stats h6 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-stats h4 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Quick Action Cards */
.quick-action-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    margin-bottom: 0;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-green);
    box-shadow: var(--shadow-hover);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    background: rgba(217, 227, 192, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-icon i {
    font-size: 1.5rem;
    color: var(--primary-teal);
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.quick-action-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.btn-action {
    background: transparent;
    border: none;
    color: var(--primary-teal);
    padding: 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    color: #004d5c;
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: var(--primary-teal);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004d5c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-teal {
    border: 1px solid var(--primary-teal);
    background: transparent;
    color: var(--primary-teal);
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-teal:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

/* ========== FORM CONTROLS ========== */
.form-control {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.form-control:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 122, 0.15);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-gray);
}

.filter-section {
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

/* ========== TABLES ========== */
.table {
    color: var(--text-dark);
    margin-bottom: 0;
}

.table th {
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--primary-teal);
    font-size: 0.85rem;
    background-color: rgba(0, 103, 122, 0.03);
}

.table td {
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 0.85rem;
}

/* DataTables Custom */
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.dataTables_wrapper .dataTables_length select {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    padding: 0.3rem;
}

.dataTables_info {
    color: var(--text-gray);
}

.paginate_button .page-link {
    background-color: var(--bg-white);
    border-color: var(--border-light);
    color: var(--text-gray);
    border-radius: 8px;
    margin: 0 2px;
}

.paginate_button.active .page-link {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

/* ========== FLATPICKR OVERRIDE ========== */
.flatpickr-calendar {
    background-color: var(--bg-white);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
}

.flatpickr-day {
    color: var(--text-dark);
}

.flatpickr-day.selected {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
}

/* ========== CHART CONTAINER ========== */
canvas {
    max-height: 400px;
}

/* ========== EMPLOYEES TABLE PAGE STYLES ========== */
.employees-header {
    margin-bottom: 1.5rem;
}

.employees-header h2 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.75rem;
    margin: 0;
    position: relative;
    display: inline-block;
}

.employees-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.btn-add-employee {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-add-employee:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-add-employee i {
    margin-right: 8px;
}

/* Employee Table Styling */
.employee-table-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.employee-table {
    width: 100%;
    margin-bottom: 0;
}

.employee-table thead th {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.employee-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Action Buttons in Table */
.btn-action-edit {
    background-color: var(--primary-teal);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.btn-action-edit:hover {
    background-color: #004d5c;
    transform: translateY(-1px);
    color: white;
}

.btn-action-delete {
    background-color: #dc3545;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
}

.btn-action-delete:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    color: white;
}

/* Employee Badge */
.employee-id-badge {
    background: rgba(0, 103, 122, 0.1);
    color: var(--primary-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Salary Amount Styling */
.salary-amount {
    font-weight: 600;
    color: var(--primary-teal);
}

/* Join Date Styling */
.join-date {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-gray-light);
    border-radius: 16px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ========== ADD/EDIT EMPLOYEE FORM PAGE STYLES ========== */
.form-header {
    margin-bottom: 1.5rem;
}

.form-header h2 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.75rem;
    margin: 0;
    position: relative;
    display: inline-block;
}

.form-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.employee-form-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Form Group Styling */
.employee-form-container .form-group {
    margin-bottom: 1.25rem;
}

.employee-form-container .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.employee-form-container .form-control {
    background-color: var(--bg-gray-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.employee-form-container .form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 122, 0.15);
    background-color: var(--bg-white);
}

.employee-form-container .form-control::placeholder {
    color: var(--text-light);
}

/* Form Row Spacing */
.employee-form-container .row {
    margin-bottom: 0.5rem;
}

/* Required Field Indicator */
.employee-form-container .form-label:after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

/* Buttons in Form */
.btn-save {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-cancel {
    background-color: var(--bg-gray-light);
    border: 2px solid var(--border-light);
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: var(--border-light);
    color: var(--text-dark);
}

/* Form Section Divider */
.form-divider {
    border-top: 1px solid var(--border-light);
    margin: 1.5rem 0;
}

/* Responsive Form */
@media (max-width: 768px) {
    .employee-form-container {
        padding: 1.5rem;
    }
    
    .btn-save, .btn-cancel {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-cancel {
        margin-right: 0;
    }
    
    .employees-header h2 {
        font-size: 1.35rem;
    }
}

/* Select2 Custom Styling for Forms */
.select2-container--default .select2-selection--single {
    background-color: var(--bg-gray-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    height: 48px;
    padding: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark);
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.select2-dropdown {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-teal);
}

/* Card Styling for Form Page */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Success/Error Message Styling */
.alert-success {
    background-color: rgba(217, 227, 192, 0.3);
    border-color: var(--secondary-green);
    color: var(--primary-teal);
    border-radius: 12px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
    border-radius: 12px;
}

/* Pagination Styling for Table */
.pagination {
    margin-top: 1rem;
}

.pagination .page-link {
    color: var(--primary-teal);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--secondary-green);
    color: var(--primary-teal);
}

/* Modal Styling */
.modal-content {
    background-color: var(--bg-white);
    border-radius: 20px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: var(--primary-teal);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-green);
    display: inline-block;
}

.section-title i {
    color: var(--primary-teal);
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: right;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    color: white;
    display: inline-flex;
    align-items: center;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background-color: #f8f9fa;
    border: 2px solid var(--border-light);
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-cancel:hover {
    background-color: var(--border-light);
    color: var(--text-dark);
    text-decoration: none;
}

.btn-reset {
    background-color: transparent;
    border: 2px solid var(--border-light);
    padding: 0.7rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-reset:hover {
    background-color: #f8f9fa;
    border-color: #dc3545;
    color: #dc3545;
}

/* Form Text Help */
.form-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Required field indicator */
.text-danger {
    color: #dc3545 !important;
    font-size: 1rem;
}

/* Card shadow enhancement */
.employee-form-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.employee-form-container:hover {
    box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        text-align: center;
    }
    
    .btn-save, .btn-cancel, .btn-reset {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .btn-save {
        margin-right: 0;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .employee-form-container {
        padding: 1.5rem;
    }
}

/* Animation for form fields */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
}

/* Success/Error message animations */
.invalid-feedback {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

/* Select dropdown styling */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300677A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Loading spinner for submit button */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Back button styling */
.btn-outline-teal {
    border: 2px solid var(--primary-teal);
    background: transparent;
    color: var(--primary-teal);
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-teal:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
    transform: translateY(-1px);
}

/* Header description text */
.text-muted {
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

/* Search Box Styles */
.search-box {
    min-width: 300px;
}

.search-input {
    border: 2px solid var(--border-light);
    border-radius: 12px 0 0 12px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: var(--primary-teal);
    box-shadow: none;
}

.btn-search {
    background-color: var(--primary-teal);
    border: none;
    color: white;
    border-radius: 0 12px 12px 0;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #004d5c;
    color: white;
}

.btn-clear {
    background-color: #dc3545;
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background-color: #c82333;
    color: white;
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action-view {
    background-color: #17a2b8;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-action-view:hover {
    background-color: #138496;
    transform: translateY(-1px);
    color: white;
}

/* Custom Pagination Styles */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.custom-pagination li {
    display: inline-block;
}

.custom-pagination li a,
.custom-pagination li span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-pagination li a {
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
}

.custom-pagination li a:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
}

.custom-pagination li.active span {
    background: linear-gradient(135deg, var(--primary-teal), #004d5c);
    border: 2px solid var(--primary-teal);
    color: white;
}

.custom-pagination li.disabled span {
    background-color: var(--bg-gray-light);
    border: 2px solid var(--border-light);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Pagination Info */
.pagination-info {
    font-size: 0.85rem;
}

/* Modal Employee Details */
.employee-detail-card {
    padding: 0.5rem;
}

.detail-item {
    margin-bottom: 1.25rem;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-item p strong {
    color: var(--primary-teal);
    font-size: 1.1rem;
}

.salary-highlight {
    color: var(--primary-teal) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.badge.bg-success {
    background-color: #28a745 !important;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
}

.badge.bg-sky {
    background-color: #17a2b8 !important;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-gray);
}

.empty-row td {
    padding: 0 !important;
}

/* Live Search Box Styles */
.search-box {
    min-width: 350px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--text-light);
}

.search-input {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0.7rem 1rem 0.7rem 40px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 122, 0.15);
    outline: none;
}

.btn-clear-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #dc3545;
    z-index: 10;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    color: #c82333;
}

/* Loading Spinner */
#loadingSpinner {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Table transition */
#tableContainer {
    transition: opacity 0.3s ease;
}

/* Toastr customization */
#toast-container > div {
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-md);
}

/* Animation for new data */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}

/* sort icon */
.sortable i {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.5;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Desktop Devices (Default) */
@media (min-width: 769px) {
    .menu-toggle {
        display: flex;
    }
    
    .top-header {
        left: 0;
        padding: 0 2rem;
    }
    
    .sidebar {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        left: calc(-1 * var(--sidebar-width));
    }
    
    /* Show sidebar on hover */
    .dashboard-container:has(.menu-toggle:hover) .sidebar,
    .dashboard-container:has(.sidebar:hover) .sidebar {
        left: 0;
    }
    
    /* Adjust main content margin when sidebar is visible */
    .dashboard-container:has(.sidebar:hover) .main-content {
        margin-left: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: 0;
        padding: calc(var(--header-height) + 24px) 32px 32px 32px;
    }
}

/* Tablet Devices */
@media (max-width: 768px) and (min-width: 481px) {
    .top-header {
        padding: 0 1.5rem;
    }
    
    .header-brand-text h3 {
        font-size: 1rem;
    }
    
    .header-brand-text small {
        font-size: 0.6rem;
    }
    
    .main-content {
        padding: calc(var(--header-height) + 16px) 20px 20px 20px;
    }
    
    .dashboard-card, .quick-action-card {
        padding: 1rem;
    }
    
    .card-stats h4 {
        font-size: 1.25rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .top-header {
        padding: 0 12px;
    }
    
    .header-brand {
        gap: 8px;
    }
    
    .header-logo {
        height: 32px;
    }
    
    .header-brand-text {
        display: none;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .menu-toggle i {
        font-size: 1rem;
    }
    
    .main-content {
        padding: calc(var(--header-height) + 12px) 12px 12px 12px;
    }
    
    .dashboard-card, .quick-action-card {
        padding: 0.875rem;
        flex-direction: row;
        text-align: left;
    }
    
    .card-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .card-icon {
        font-size: 1.25rem;
    }
    
    .card-stats h4 {
        font-size: 1.1rem;
    }
    
    .card-stats h6 {
        font-size: 0.7rem;
    }
    
    .quick-action-icon {
        width: 40px;
        height: 40px;
    }
    
    .quick-action-icon i {
        font-size: 1.2rem;
    }
    
    .quick-action-content h5 {
        font-size: 0.85rem;
    }
    
    .quick-action-content p {
        font-size: 0.7rem;
    }
    
    .btn-action {
        font-size: 0.7rem;
    }
    
    .employees-header h2 {
        font-size: 1.25rem;
    }
    
    .btn-add-employee {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .employee-table thead th {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .employee-table tbody td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .custom-pagination li a,
    .custom-pagination li span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .detail-item p {
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .top-header {
        padding: 0 8px;
    }
    
    .header-logo {
        height: 28px;
    }
    
    .menu-toggle {
        width: 34px;
        height: 34px;
    }
    
    .profile-btn i {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: calc(var(--header-height) + 10px) 10px 10px 10px;
    }
    
    .card-stats h4 {
        font-size: 1rem;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main-content {
        padding: calc(var(--header-height) + 10px) 15px 15px 15px;
    }
    
    .top-header {
        padding: 0 15px;
    }
    
    .dashboard-card, .quick-action-card {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .top-header, .sidebar, .menu-toggle, .profile-dropdown, .btn-add-employee, .dataTables_filter, .dataTables_length, .dt-buttons {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========== HEADER STYLES ONLY ========== */

:root {
    --primary-teal: #00677A;
    --secondary-green: #D9E3C0;
    --bg-light: #F5F7F0;
    --bg-white: #FFFFFF;
    --bg-gray-light: #FAFBF7;
    --text-dark: #2C3E40;
    --text-gray: #5A6E73;
    --text-light: #8A9EA3;
    --border-light: #E8EDE0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 103, 122, 0.12);
    --header-height: 70px;
    --header-gap: 0px;
    --header-border-radius: 16px;
}

.top-header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;
    padding: 0 24px;

    border-radius: 0; /* remove rounded top gap look */
    box-shadow: var(--shadow-sm);
}

.sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

.top-header:hover {
    box-shadow: var(--shadow-md);
}

/* Header Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand Logo and Text */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.header-brand:hover {
    transform: translateY(-2px);
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.header-brand-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin: 0;
    line-height: 1.3;
}

.header-brand-text small {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Menu Toggle Button */
.menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--primary-teal);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.menu-toggle:hover {
    background: #004d5c;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.menu-toggle i {
    font-size: 1.2rem;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(0, 103, 122, 0.08);
    transform: scale(1.05);
}

.profile-btn i {
    font-size: 2rem;
}

.profile-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-white);
    min-width: 240px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    display: none;
    z-index: 1100;
    border: 1px solid var(--border-light);
}

.profile-menu.show-profile-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.profile-name {
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-menu hr {
    margin: 8px 0;
    border-color: var(--border-light);
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.profile-menu a:hover {
    background: rgba(0, 103, 122, 0.08);
    color: var(--primary-teal);
    transform: translateX(4px);
}

.profile-menu a i {
    width: 20px;
    color: var(--primary-teal);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE HEADER ========== */

/* Tablet Devices */
@media (max-width: 768px) {
    :root {
        --header-gap: 12px;
        --header-border-radius: 12px;
    }
    
    .top-header {
        padding: 0 16px;
    }
    
    .header-brand-text h3 {
        font-size: 1rem;
    }
    
    .header-brand-text small {
        font-size: 0.6rem;
    }
    
    .header-logo {
        height: 32px;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
    }
    
    .profile-btn i {
        font-size: 1.75rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    :root {
        --header-gap: 8px;
        --header-border-radius: 10px;
    }
    
    .top-header {
        padding: 0 12px;
    }
    
    .header-brand {
        gap: 8px;
    }
    
    .header-brand-text {
        display: none;
    }
    
    .header-logo {
        height: 28px;
    }
    
    .menu-toggle {
        width: 34px;
        height: 34px;
    }
    
    .menu-toggle i {
        font-size: 1rem;
    }
    
    .profile-btn i {
        font-size: 1.5rem;
    }
    
    .profile-menu {
        min-width: 200px;
        right: -10px;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    :root {
        --header-gap: 6px;
        --header-border-radius: 8px;
    }
    
    .top-header {
        padding: 0 8px;
    }
    
    .header-logo {
        height: 24px;
    }
    
    .menu-toggle {
        width: 30px;
        height: 30px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --header-height: 60px;
        --header-gap: 10px;
    }
    
    .top-header {
        padding: 0 16px;
    }
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
    .top-header {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Print Styles */
@media print {
    .top-header {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Select2 Custom Style */

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    cursor: pointer !important;
    appearance: none !important;

    background-color: var(--bg-gray-light) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;

    height: 48px !important;
    padding: 0.75rem 1rem !important;

    font-size: 0.9rem !important;
    color: var(--text-dark) !important;

    transition: all 0.3s ease !important;

    display: flex !important;
    align-items: center !important;

    position: relative !important;
}

/* Focus Effect */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-teal) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 103, 122, 0.15) !important;
    background-color: var(--bg-white) !important;
}

/* Selected Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
    line-height: normal !important;
    padding-left: 0 !important;
    padding-right: 25px !important;
}

/* Dropdown Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    width: 30px !important;
    right: 10px !important;
    top: 0 !important;
}

/* Hide Default Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

/* Custom Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: var(--primary-teal);
    font-size: 14px;

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Rotate Arrow */
.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Dropdown Box */
.select2-dropdown {
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Search Input */
.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid var(--border-light) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-teal) !important;
}

/* Dropdown Options */
.select2-results__option {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
}

/* Hover Option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-teal) !important;
    color: #fff !important;
}

/* Dropdown Scrollbar */
.select2-results > .select2-results__options {
    max-height: 220px !important;
    overflow-y: auto !important;
}

/* Custom Scrollbar */
.select2-results > .select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results > .select2-results__options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.select2-results > .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--primary-teal);
    border-radius: 10px;
}

.select2-results > .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #004d5c;
}

/* =========================================
   MOBILE RESPONSIVE - EMPLOYEE HEADER
========================================= */

@media (max-width: 768px) {

    /* Header spacing */
    .employees-header .row {
        gap: 15px;
    }

    /* Title section */
    .employees-header h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .employees-header p {
        font-size: 13px;
    }

    /* Right side wrapper */
    .employees-header .d-flex.justify-content-end {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    /* Search box full width */
    .search-box {
        width: 100%;
    }

    .search-box .input-group {
        width: 100%;
    }

    .search-input {
        height: 42px;
        font-size: 14px;
    }

    /* Buttons */
    .btn-add-employee,
    .btn-info {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 10px 14px;
        border-radius: 10px;
        white-space: nowrap;
    }

    /* Status buttons */
    .status-filter-wrap,
    .mb-3.d-flex.gap-2 {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .status-filter {
        flex: 1;
        min-width: 150px;
        text-align: center;
        font-size: 13px;
        padding: 9px 14px;
        white-space: nowrap;
    }

    /* Table responsive */
    .employee-table {
        min-width: 850px;
    }

    /* Smaller action buttons */
    .employee-table .btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* Modal responsive */
    #employeeModal .modal-body,
    #documentUploadModal .modal-body,
    #appraisalModal .modal-body {
        padding: 15px;
    }

    .employee-detail-card {
        padding: 12px 15px;
    }

    .employee-value {
        font-size: 14px;
    }

    /* Select2 responsive */
    .select2-container {
        width: 100% !important;
    }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .employees-header h2 {
        font-size: 20px;
    }

    .search-input {
        font-size: 13px;
    }

    .btn-add-employee,
    .btn-info {
        font-size: 12px;
        padding: 9px 12px;
    }

    .status-filter {
        font-size: 12px;
        padding: 8px 12px;
    }

    .employee-table th,
    .employee-table td {
        font-size: 12px;
        white-space: nowrap;
    }
}

