/* ==========================================================================
   JTR SOLUTIONS - UNIFIED THEME SYSTEM (LIGHT & DARK MODES)
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME TOGGLE BUTTON STYLES
   -------------------------------------------------------------------------- */
.jtr-theme-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.jtr-theme-toggle:hover {
    transform: scale(1.05);
}

.jtr-theme-pill {
    position: relative;
    width: 112px;
    height: 38px;
    border-radius: 9999px;
    background: #111827;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 3px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

/* Thumb Knob */
.jtr-theme-thumb {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, color 0.35s ease;
    z-index: 2;
}

.jtr-theme-thumb svg {
    width: 17px;
    height: 17px;
    transition: all 0.3s ease;
}

.jtr-icon-sun {
    display: none;
}

.jtr-icon-moon {
    display: block;
    color: #0f172a;
}

/* Mode Labels */
.jtr-theme-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.1;
    text-transform: uppercase;
    font-family: 'Outfit', 'Cairo', sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.jtr-theme-text.dark-text {
    margin-left: auto;
    margin-right: 14px;
    color: #ffffff;
    opacity: 1;
    display: block;
    text-align: center;
}

.jtr-theme-text.light-text {
    margin-left: 14px;
    color: #ffffff;
    opacity: 0;
    display: none;
    text-align: center;
}

/* Light Mode Toggle Appearance */
[data-theme="light"] .jtr-theme-pill,
body.light-mode .jtr-theme-pill {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .jtr-theme-thumb,
body.light-mode .jtr-theme-thumb {
    transform: translateX(72px);
    background: #ffffff;
    color: #0284c7;
}

[data-theme="light"] .jtr-icon-moon,
body.light-mode .jtr-icon-moon {
    display: none;
}

[data-theme="light"] .jtr-icon-sun,
body.light-mode .jtr-icon-sun {
    display: block;
    color: #f59e0b;
}

[data-theme="light"] .jtr-theme-text.dark-text,
body.light-mode .jtr-theme-text.dark-text {
    display: none;
    opacity: 0;
}

[data-theme="light"] .jtr-theme-text.light-text,
body.light-mode .jtr-theme-text.light-text {
    display: block;
    opacity: 1;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIGHT MODE THEME OVERRIDES (JTR BRAND CYAN & CRISP WHITE)
   -------------------------------------------------------------------------- */
[data-theme="light"],
body.light-mode {
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --primary-hover: #0369a1;
    --secondary: #f0f9ff;
    --accent: #0ea5e9;
    --bg-main: #f8fafc;
    --bg-gradient: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f0f9ff 35%, #f8fafc 100%);
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(14, 165, 233, 0.2);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --sidebar-bg: #ffffff;
    --sidebar-text: #0f172a;
    --card-shadow: 0 10px 30px rgba(14, 165, 233, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Global Light Backgrounds */
[data-theme="light"],
[data-theme="light"] body,
body.light-mode {
    background-color: #f8fafc !important;
    background-image: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f0f9ff 35%, #f8fafc 100%) !important;
    color: #0f172a !important;
}

[data-theme="light"] ::-webkit-scrollbar-track,
body.light-mode ::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb,
body.light-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #38bdf8, #0284c7) !important;
    border-color: #f1f5f9 !important;
}

/* --------------------------------------------------------------------------
   GATEWAY (index2.html) IN LIGHT MODE
   -------------------------------------------------------------------------- */
[data-theme="light"] .video-overlay,
body.light-mode .video-overlay {
    background: radial-gradient(circle at center, rgba(240, 249, 255, 0.88) 0%, rgba(224, 242, 254, 0.96) 100%) !important;
    backdrop-filter: blur(14px) !important;
}

[data-theme="light"] .header h1,
body.light-mode .header h1 {
    color: #0f172a !important;
}

[data-theme="light"] .system-card,
body.light-mode .system-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(14, 165, 233, 0.22) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .system-card h3,
body.light-mode .system-card h3 {
    color: #0f172a !important;
}

[data-theme="light"] .system-card:hover h3,
body.light-mode .system-card:hover h3 {
    color: #0284c7 !important;
    text-shadow: 0 0 16px rgba(14, 165, 233, 0.3) !important;
}

[data-theme="light"] .system-card p,
body.light-mode .system-card p {
    color: #475569 !important;
}

[data-theme="light"] .user-info,
body.light-mode .user-info {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12) !important;
}

[data-theme="light"] .user-info #user-name,
body.light-mode .user-info #user-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .footer-icons.landing-footer,
body.light-mode .footer-icons.landing-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(14, 165, 233, 0.28) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12), 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .social-icon,
body.light-mode .social-icon {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .social-icon:hover,
body.light-mode .social-icon:hover {
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.22) !important;
}

/* --------------------------------------------------------------------------
   NAVBARS & SIDENAVS
   -------------------------------------------------------------------------- */
[data-theme="light"] .main-navbar,
[data-theme="light"] .sidebar,
[data-theme="light"] .top-bar,
body.light-mode .main-navbar,
body.light-mode .sidebar,
body.light-mode .top-bar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(14, 165, 233, 0.18) !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

[data-theme="light"] .user-badge,
body.light-mode .user-badge {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

[data-theme="light"] .nav-icon-btn,
body.light-mode .nav-icon-btn {
    background: rgba(14, 165, 233, 0.08) !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
    color: #0284c7 !important;
}

[data-theme="light"] .nav-icon-btn:hover,
body.light-mode .nav-icon-btn:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-back-gateway,
body.light-mode .btn-back-gateway {
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12) !important;
}

[data-theme="light"] .btn-back-gateway:hover,
body.light-mode .btn-back-gateway:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   CARDS, MODALS, GLASS SURFACES
   -------------------------------------------------------------------------- */
[data-theme="light"] .glass,
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .chart-card,
[data-theme="light"] .table-card,
[data-theme="light"] .login-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .agent-card,
[data-theme="light"] .ticket-card,
body.light-mode .glass,
body.light-mode .card,
body.light-mode .stat-card,
body.light-mode .chart-card,
body.light-mode .table-card,
body.light-mode .login-card,
body.light-mode .modal-card,
body.light-mode .agent-card,
body.light-mode .ticket-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(14, 165, 233, 0.18) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    color: #0f172a !important;
}

[data-theme="light"] .login-header h1,
body.light-mode .login-header h1 {
    color: #0f172a !important;
}

[data-theme="light"] .login-header p,
body.light-mode .login-header p {
    color: #64748b !important;
}

/* --------------------------------------------------------------------------
   INPUTS, SELECTS & CONTROLS
   -------------------------------------------------------------------------- */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] select option,
[data-theme="light"] optgroup,
[data-theme="light"] .sched-filter-box select option,
[data-theme="light"] .sched-search-box select option,
[data-theme="light"] #dash-account-filter option,
[data-theme="light"] #dash-role-filter option,
[data-theme="light"] #dash-month-filter option,
[data-theme="light"] #user-acc-filter option,
[data-theme="light"] #user-role-filter option,
[data-theme="light"] #user-tl-filter option,
[data-theme="light"] #payroll-acc-filter option,
[data-theme="light"] #payroll-role-filter option,
[data-theme="light"] #payroll-month-filter option,
[data-theme="light"] #sched-account-filter option,
[data-theme="light"] #sched-role-filter option,
[data-theme="light"] .glass-form select option,
[data-theme="light"] select.glass-form option,
body.light-mode select option,
body.light-mode optgroup,
body.light-mode .sched-filter-box select option,
body.light-mode .sched-search-box select option,
body.light-mode #dash-account-filter option,
body.light-mode #dash-role-filter option,
body.light-mode #dash-month-filter option,
body.light-mode #user-acc-filter option,
body.light-mode #user-role-filter option,
body.light-mode #user-tl-filter option,
body.light-mode #payroll-acc-filter option,
body.light-mode #payroll-role-filter option,
body.light-mode #payroll-month-filter option,
body.light-mode #sched-account-filter option,
body.light-mode #sched-role-filter option,
body.light-mode .glass-form select option,
body.light-mode select.glass-form option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] select option:hover,
[data-theme="light"] select option:focus,
[data-theme="light"] select option:checked,
body.light-mode select option:hover,
body.light-mode select option:focus,
body.light-mode select option:checked {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] .filter-group select,
[data-theme="light"] select[id^="dash-"],
[data-theme="light"] #dash-account-filter,
[data-theme="light"] #dash-role-filter,
[data-theme="light"] #dash-month-filter,
[data-theme="light"] #user-acc-filter,
[data-theme="light"] #user-role-filter,
[data-theme="light"] #user-tl-filter,
[data-theme="light"] #payroll-acc-filter,
[data-theme="light"] #payroll-role-filter,
[data-theme="light"] #payroll-month-filter,
[data-theme="light"] #sched-account-filter,
[data-theme="light"] #sched-role-filter,
body.light-mode .filter-group select,
body.light-mode select[id^="dash-"],
body.light-mode #dash-account-filter,
body.light-mode #dash-role-filter,
body.light-mode #dash-month-filter,
body.light-mode #user-acc-filter,
body.light-mode #user-role-filter,
body.light-mode #user-tl-filter,
body.light-mode #payroll-acc-filter,
body.light-mode #payroll-role-filter,
body.light-mode #payroll-month-filter,
body.light-mode #sched-account-filter,
body.light-mode #sched-role-filter {
    color: #0f172a !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .input-group label,
body.light-mode .input-group label {
    color: #475569 !important;
}

/* --------------------------------------------------------------------------
   TABLES & SCHEDULE MATRIX (HR SYSTEM)
   -------------------------------------------------------------------------- */
[data-theme="light"] table,
body.light-mode table {
    color: #0f172a !important;
}

[data-theme="light"] table thead th,
body.light-mode table thead th {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] table tbody td,
body.light-mode table tbody td {
    border-color: #f1f5f9 !important;
    color: #1e293b !important;
}

[data-theme="light"] table tbody tr:hover,
body.light-mode table tbody tr:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .sched-table-container,
body.light-mode .sched-table-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .sched-cell,
body.light-mode .sched-cell {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .sched-header-col,
body.light-mode .sched-header-col {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .sched-user-cell,
body.light-mode .sched-user-cell {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .sched-filter-box,
[data-theme="light"] .sched-role-multiselect-btn,
body.light-mode .sched-filter-box,
body.light-mode .sched-role-multiselect-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .sched-role-menu,
body.light-mode .sched-role-menu {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .sched-role-item,
body.light-mode .sched-role-item {
    color: #1e293b !important;
}

[data-theme="light"] .sched-role-item:hover,
body.light-mode .sched-role-item:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
}

[data-theme="light"] .sched-popover-menu,
[data-theme="light"] #sched-status-popover,
[data-theme="light"] .sched-status-popover,
body.light-mode .sched-popover-menu,
body.light-mode #sched-status-popover,
body.light-mode .sched-status-popover {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

[data-theme="light"] .sched-popover-menu > div:first-child,
[data-theme="light"] #sched-status-popover > div:first-child,
body.light-mode .sched-popover-menu > div:first-child,
body.light-mode #sched-status-popover > div:first-child {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .sched-popover-btn,
body.light-mode .sched-popover-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .sched-popover-btn:hover,
body.light-mode .sched-popover-btn:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

/* Sticky First Column for Staff (HR Schedule) */
[data-theme="light"] .sched-matrix-table th.col-staff,
[data-theme="light"] .sched-matrix-table td.col-staff,
body.light-mode .sched-matrix-table th.col-staff,
body.light-mode .sched-matrix-table td.col-staff {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .sched-matrix-table thead th.col-staff,
body.light-mode .sched-matrix-table thead th.col-staff {
    background: #f1f5f9 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .sched-staff-name,
body.light-mode .sched-staff-name {
    color: #0f172a !important;
}

[data-theme="light"] .sched-day-header .day-name,
body.light-mode .sched-day-header .day-name {
    color: #0284c7 !important;
}

[data-theme="light"] .sched-day-header .day-date,
body.light-mode .sched-day-header .day-date {
    color: #1e293b !important;
}

[data-theme="light"] .sched-day-header.is-today,
body.light-mode .sched-day-header.is-today {
    background: rgba(14, 165, 233, 0.12) !important;
    border-bottom: 2px solid #0284c7 !important;
}

[data-theme="light"] .sched-day-header.is-today .day-name,
[data-theme="light"] .sched-day-header.is-today .day-date,
body.light-mode .sched-day-header.is-today .day-name,
body.light-mode .sched-day-header.is-today .day-date {
    color: #0284c7 !important;
}

[data-theme="light"] #sched-week-label,
body.light-mode #sched-week-label {
    color: #0f172a !important;
}

[data-theme="light"] #sched-date-picker,
body.light-mode #sched-date-picker {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    color-scheme: light !important;
}

[data-theme="light"] .sched-shortcuts-hint,
body.light-mode .sched-shortcuts-hint {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .sched-shortcuts-hint span,
body.light-mode .sched-shortcuts-hint span {
    color: #334155 !important;
}

[data-theme="light"] .sched-shortcuts-hint kbd,
body.light-mode .sched-shortcuts-hint kbd {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   HR EMPLOYEE PROFILE & SALARY CARDS IN LIGHT MODE
   -------------------------------------------------------------------------- */
[data-theme="light"] #profile-stat-netsalary,
[data-theme="light"] #portal-stat-netsalary,
body.light-mode #profile-stat-netsalary,
body.light-mode #portal-stat-netsalary {
    color: #0284c7 !important;
    text-shadow: none !important;
}

[data-theme="light"] div[style*="border:2px solid var(--accent)"],
[data-theme="light"] div[style*="border: 2px solid var(--accent)"],
body.light-mode div[style*="border:2px solid var(--accent)"],
body.light-mode div[style*="border: 2px solid var(--accent)"] {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 2px solid #0284c7 !important;
}

[data-theme="light"] #profile-personal-sched-wrap > div,
body.light-mode #profile-personal-sched-wrap > div {
    background: #ffffff !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
}

[data-theme="light"] #profile-personal-sched-wrap h4,
body.light-mode #profile-personal-sched-wrap h4 {
    color: #0f172a !important;
}

[data-theme="light"] #profile-personal-sched-wrap div[style*="background:rgba(15,23,42,0.5)"],
[data-theme="light"] #profile-personal-sched-wrap div[style*="background: rgba(15, 23, 42, 0.5)"],
body.light-mode #profile-personal-sched-wrap div[style*="background:rgba(15,23,42,0.5)"],
body.light-mode #profile-personal-sched-wrap div[style*="background: rgba(15, 23, 42, 0.5)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .profile-sched-table,
body.light-mode .profile-sched-table {
    background: #ffffff !important;
}

[data-theme="light"] .profile-sched-table th,
body.light-mode .profile-sched-table th {
    background: #f1f5f9 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .profile-sched-table th div,
body.light-mode .profile-sched-table th div {
    color: #0369a1 !important;
}

[data-theme="light"] .profile-sched-table th.is-today-col,
body.light-mode .profile-sched-table th.is-today-col {
    background: rgba(14, 165, 233, 0.15) !important;
    border-bottom: 2px solid #0284c7 !important;
}

[data-theme="light"] .profile-sched-table td,
body.light-mode .profile-sched-table td {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .profile-sched-table td.is-today-col,
body.light-mode .profile-sched-table td.is-today-col {
    background: rgba(14, 165, 233, 0.05) !important;
}

[data-theme="light"] .profile-sched-table .sched-cell-empty,
[data-theme="light"] .sched-cell-empty,
body.light-mode .profile-sched-table .sched-cell-empty,
body.light-mode .sched-cell-empty {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #94a3b8 !important;
}

[data-theme="light"] .profile-sched-table .sched-cell-empty span,
[data-theme="light"] .sched-cell-empty span,
body.light-mode .profile-sched-table .sched-cell-empty span,
body.light-mode .sched-cell-empty span {
    color: #94a3b8 !important;
}

[data-theme="light"] .profile-tab,
body.light-mode .profile-tab {
    color: #64748b !important;
}

[data-theme="light"] .profile-tab.active,
body.light-mode .profile-tab.active {
    color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   HR DASHBOARD PREMIUM STATS & DENSITY SECTIONS
   -------------------------------------------------------------------------- */
[data-theme="light"] .stat-card-premium.active-card,
body.light-mode .stat-card-premium.active-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.4) !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .stat-card-premium.active-card *,
body.light-mode .stat-card-premium.active-card * {
    color: #ffffff !important;
}

[data-theme="light"] h4[style*="color: white"],
[data-theme="light"] h4[style*="color:white"],
[data-theme="light"] h3[style*="color: white"],
[data-theme="light"] h3[style*="color:white"],
body.light-mode h4[style*="color: white"],
body.light-mode h4[style*="color:white"],
body.light-mode h3[style*="color: white"],
body.light-mode h3[style*="color:white"] {
    color: #0f172a !important;
}

[data-theme="light"] #dash-employees-by-account span[style*="color:white"],
[data-theme="light"] #dash-employees-by-account span[style*="color: white"],
[data-theme="light"] #dash-employees-by-role div[style*="color:white"],
[data-theme="light"] #dash-employees-by-role div[style*="color: white"],
body.light-mode #dash-employees-by-account span[style*="color:white"],
body.light-mode #dash-employees-by-account span[style*="color: white"],
body.light-mode #dash-employees-by-role div[style*="color:white"],
body.light-mode #dash-employees-by-role div[style*="color: white"] {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* --------------------------------------------------------------------------
   QUALITY ASSURANCE SYSTEM IN LIGHT MODE
   -------------------------------------------------------------------------- */
[data-theme="light"] .eval-errors-section,
body.light-mode .eval-errors-section {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(14, 165, 233, 0.22) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08) !important;
}

[data-theme="light"] .eval-errors-title,
body.light-mode .eval-errors-title {
    color: #0f172a !important;
}

[data-theme="light"] .eval-error-column,
body.light-mode .eval-error-column {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .eval-col-header,
body.light-mode .eval-col-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .eval-accordion-item,
body.light-mode .eval-accordion-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .eval-accordion-header,
body.light-mode .eval-accordion-header {
    background: #f8fafc !important;
    color: #0f172a !important;
}

[data-theme="light"] .eval-err-item,
body.light-mode .eval-err-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .eval-err-item:hover,
body.light-mode .eval-err-item:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.1) !important;
}

[data-theme="light"] .eval-err-text,
body.light-mode .eval-err-text {
    color: #1e293b !important;
}

[data-theme="light"] .eval-err-reason-box,
body.light-mode .eval-err-reason-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .eval-err-reason-input,
body.light-mode .eval-err-reason-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .eval-err-reason-input::placeholder,
body.light-mode .eval-err-reason-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .eval-subcategory-title,
body.light-mode .eval-subcategory-title {
    color: #0284c7 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

[data-theme="light"] .badge-rate-nc,
body.light-mode .badge-rate-nc {
    background: #fef9c3 !important;
    border: 1px solid #facc15 !important;
    color: #854d0e !important;
}

[data-theme="light"] .badge-rate-crit,
body.light-mode .badge-rate-crit {
    background: #fee2e2 !important;
    border: 1px solid #f87171 !important;
    color: #991b1b !important;
}

[data-theme="light"] .eval-crit-group-title,
body.light-mode .eval-crit-group-title {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* Quality Call Expanded Details Row & Badges */
[data-theme="light"] tr[id*="details"],
body.light-mode tr[id*="details"] {
    background: #f8fafc !important;
}

[data-theme="light"] tr[id*="details"] td,
body.light-mode tr[id*="details"] td {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .chip-nc,
body.light-mode .chip-nc {
    background: #fef9c3 !important;
    border: 1px solid #facc15 !important;
    color: #854d0e !important;
    font-weight: 700 !important;
}

[data-theme="light"] .chip-crit,
body.light-mode .chip-crit {
    background: #fee2e2 !important;
    border: 1px solid #f87171 !important;
    color: #991b1b !important;
    font-weight: 700 !important;
}

[data-theme="light"] .chip-score,
body.light-mode .chip-score {
    background: #e0f2fe !important;
    border: 1px solid #38bdf8 !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .eval-err-reason-pill,
body.light-mode .eval-err-reason-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .eval-err-reason-pill .reason-tag-title,
body.light-mode .eval-err-reason-pill .reason-tag-title {
    color: #0284c7 !important;
}

[data-theme="light"] .eval-err-reason-pill .reason-tag-desc,
body.light-mode .eval-err-reason-pill .reason-tag-desc {
    color: #334155 !important;
}

/* --------------------------------------------------------------------------
   IT & TRAINING SYSTEMS IN LIGHT MODE
   -------------------------------------------------------------------------- */
[data-theme="light"] .ticket-card,
[data-theme="light"] .ticket-item,
body.light-mode .ticket-card,
body.light-mode .ticket-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .nav-tab,
body.light-mode .nav-tab {
    color: #64748b !important;
}

[data-theme="light"] .nav-tab.active,
[data-theme="light"] .nav-tab:hover,
body.light-mode .nav-tab.active,
body.light-mode .nav-tab:hover {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.1) !important;
}

/* --------------------------------------------------------------------------
   SALARY & ROLE DISTRIBUTION VISUAL BARS (HR DASHBOARD)
   -------------------------------------------------------------------------- */
[data-theme="light"] #chart-account-dist span[style*="color:white"],
[data-theme="light"] #chart-account-dist span[style*="color: white"],
[data-theme="light"] #chart-account-dist div[style*="color:white"],
[data-theme="light"] #chart-account-dist div[style*="color: white"],
[data-theme="light"] #chart-job-dist span[style*="color:white"],
[data-theme="light"] #chart-job-dist span[style*="color: white"],
[data-theme="light"] #chart-job-dist div[style*="color:white"],
[data-theme="light"] #chart-job-dist div[style*="color: white"],
body.light-mode #chart-account-dist span[style*="color:white"],
body.light-mode #chart-account-dist span[style*="color: white"],
body.light-mode #chart-account-dist div[style*="color:white"],
body.light-mode #chart-account-dist div[style*="color: white"],
body.light-mode #chart-job-dist span[style*="color:white"],
body.light-mode #chart-job-dist span[style*="color: white"],
body.light-mode #chart-job-dist div[style*="color:white"],
body.light-mode #chart-job-dist div[style*="color: white"] {
    color: #0f172a !important;
}

[data-theme="light"] #chart-account-dist div[style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] #chart-job-dist div[style*="background:rgba(255,255,255,0.03)"],
body.light-mode #chart-account-dist div[style*="background:rgba(255,255,255,0.03)"],
body.light-mode #chart-job-dist div[style*="background:rgba(255,255,255,0.03)"] {
    background: #e2e8f0 !important;
}

/* --------------------------------------------------------------------------
   WORKFORCE SCHEDULE SHIFT PILLS & SEARCH BOX (HR SYSTEM)
   -------------------------------------------------------------------------- */
[data-theme="light"] .sched-shift-pill.pill-shift,
body.light-mode .sched-shift-pill.pill-shift {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-shift svg,
[data-theme="light"] .sched-shift-pill.pill-shift i,
body.light-mode .sched-shift-pill.pill-shift svg,
body.light-mode .sched-shift-pill.pill-shift i {
    color: #0284c7 !important;
}

[data-theme="light"] .sched-shift-pill.pill-holiday,
[data-theme="light"] .sched-shift-pill.pill-exam,
body.light-mode .sched-shift-pill.pill-holiday,
body.light-mode .sched-shift-pill.pill-exam {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-holiday svg,
[data-theme="light"] .sched-shift-pill.pill-holiday i,
body.light-mode .sched-shift-pill.pill-holiday svg,
body.light-mode .sched-shift-pill.pill-holiday i {
    color: #b91c1c !important;
}

[data-theme="light"] .sched-shift-pill.pill-dayoff,
body.light-mode .sched-shift-pill.pill-dayoff {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #475569 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-annual,
body.light-mode .sched-shift-pill.pill-annual {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-lieu,
body.light-mode .sched-shift-pill.pill-lieu {
    background: #f3e8ff !important;
    border-color: #a855f7 !important;
    color: #6b21a8 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-sick,
body.light-mode .sched-shift-pill.pill-sick {
    background: #ffe4e6 !important;
    border-color: #f43f5e !important;
    color: #9f1239 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-unpaid,
[data-theme="light"] .sched-shift-pill.pill-half-unpaid,
body.light-mode .sched-shift-pill.pill-unpaid,
body.light-mode .sched-shift-pill.pill-half-unpaid {
    background: #ffedd5 !important;
    border-color: #f97316 !important;
    color: #9a3412 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-shift-pill.pill-wfh,
body.light-mode .sched-shift-pill.pill-wfh {
    background: #dcfce7 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sched-search-box,
body.light-mode .sched-search-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .sched-search-box:hover,
[data-theme="light"] .sched-search-box:focus-within,
body.light-mode .sched-search-box:hover,
body.light-mode .sched-search-box:focus-within {
    background: #ffffff !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

[data-theme="light"] .sched-search-box input,
body.light-mode .sched-search-box input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

[data-theme="light"] .sched-search-box input::placeholder,
body.light-mode .sched-search-box input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .sched-search-box i,
[data-theme="light"] .sched-search-box svg,
body.light-mode .sched-search-box i,
body.light-mode .sched-search-box svg {
    color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   QUALITY ASSURANCE ACCORDION HEADERS & CATEGORY TITLES
   -------------------------------------------------------------------------- */
[data-theme="light"] .eval-acc-title,
body.light-mode .eval-acc-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

[data-theme="light"] .eval-nc-acc-header .eval-cat-arrow,
body.light-mode .eval-nc-acc-header .eval-cat-arrow {
    color: #d97706 !important;
}

[data-theme="light"] .eval-crit-acc-header .eval-cat-arrow,
body.light-mode .eval-crit-acc-header .eval-cat-arrow {
    color: #dc2626 !important;
}

[data-theme="light"] .eval-acc-total-count,
body.light-mode .eval-acc-total-count {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .badge-nc-count,
body.light-mode .badge-nc-count {
    background: #fef9c3 !important;
    border: 1px solid #facc15 !important;
    color: #854d0e !important;
}

[data-theme="light"] .badge-crit-count,
body.light-mode .badge-crit-count {
    background: #fee2e2 !important;
    border: 1px solid #f87171 !important;
    color: #991b1b !important;
}

[data-theme="light"] .eval-accordion-body,
body.light-mode .eval-accordion-body {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* User table names and cells with inline white text */
[data-theme="light"] td[style*="color: white"],
[data-theme="light"] td[style*="color:white"],
body.light-mode td[style*="color: white"],
body.light-mode td[style*="color:white"] {
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   IT TICKETING STATUS PILLS & INLINE SELECT BADGES
   -------------------------------------------------------------------------- */
[data-theme="light"] .status-select-inline.open,
[data-theme="light"] .status-badge.open,
body.light-mode .status-select-inline.open,
body.light-mode .status-badge.open {
    background: #fee2e2 !important;
    border: 1.5px solid #ef4444 !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
}

[data-theme="light"] .status-select-inline.pending,
[data-theme="light"] .status-badge.pending,
body.light-mode .status-select-inline.pending,
body.light-mode .status-badge.pending {
    background: #fef3c7 !important;
    border: 1.5px solid #f59e0b !important;
    color: #92400e !important;
    font-weight: 800 !important;
}

[data-theme="light"] .status-select-inline.closed,
[data-theme="light"] .status-badge.closed,
body.light-mode .status-select-inline.closed,
body.light-mode .status-badge.closed {
    background: #dcfce7 !important;
    border: 1.5px solid #10b981 !important;
    color: #065f46 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .status-select-inline option,
body.light-mode .status-select-inline option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   TRAINING & ACTION BUTTONS WITH SECONDARY ACCENT IN LIGHT MODE
   -------------------------------------------------------------------------- */
[data-theme="light"] button[style*="var(--secondary)"],
body.light-mode button[style*="var(--secondary)"] {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] span[style*="background: var(--secondary)"],
[data-theme="light"] span[style*="background:var(--secondary)"],
body.light-mode span[style*="background: var(--secondary)"],
body.light-mode span[style*="background:var(--secondary)"] {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] [style*="color:var(--secondary)"],
[data-theme="light"] [style*="color: var(--secondary)"],
body.light-mode [style*="color:var(--secondary)"],
body.light-mode [style*="color: var(--secondary)"] {
    color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   PAYROLL BREAKDOWN MODAL (BONUSES & DEDUCTIONS - LIGHT MODE)
   -------------------------------------------------------------------------- */
[data-theme="light"] #payroll-breakdown-modal .glass-form,
body.light-mode #payroll-breakdown-modal .glass-form {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    color: #0f172a !important;
}

[data-theme="light"] #breakdown-modal-title,
body.light-mode #breakdown-modal-title {
    color: #0f172a !important;
}

[data-theme="light"] #breakdown-modal-subtitle,
body.light-mode #breakdown-modal-subtitle {
    color: #64748b !important;
}

[data-theme="light"] #breakdown-search-input,
body.light-mode #breakdown-search-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] #breakdown-search-input::placeholder,
body.light-mode #breakdown-search-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] #breakdown-summary-badge,
body.light-mode #breakdown-summary-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] #payroll-breakdown-modal .glass-form > div:nth-child(3),
body.light-mode #payroll-breakdown-modal .glass-form > div:nth-child(3) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #payroll-breakdown-modal table,
body.light-mode #payroll-breakdown-modal table {
    background: #ffffff !important;
}

[data-theme="light"] #payroll-breakdown-modal thead tr,
body.light-mode #payroll-breakdown-modal thead tr {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #payroll-breakdown-modal thead th,
body.light-mode #payroll-breakdown-modal thead th {
    color: #0369a1 !important;
}

[data-theme="light"] #payroll-breakdown-modal tbody tr,
body.light-mode #payroll-breakdown-modal tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #payroll-breakdown-modal tbody tr:nth-child(even),
body.light-mode #payroll-breakdown-modal tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

[data-theme="light"] #payroll-breakdown-modal tbody tr:hover,
body.light-mode #payroll-breakdown-modal tbody tr:hover {
    background: #f0f9ff !important;
}

[data-theme="light"] .breakdown-name-cell,
[data-theme="light"] #breakdown-table-body td div[style*="color: white"],
[data-theme="light"] #breakdown-table-body td div[style*="color:white"],
body.light-mode .breakdown-name-cell,
body.light-mode #breakdown-table-body td div[style*="color: white"],
body.light-mode #breakdown-table-body td div[style*="color:white"] {
    color: #0f172a !important;
}

[data-theme="light"] .breakdown-job-cell,
[data-theme="light"] #breakdown-table-body td[style*="color: #cbd5e1"],
body.light-mode .breakdown-job-cell,
body.light-mode #breakdown-table-body td[style*="color: #cbd5e1"] {
    color: #475569 !important;
}

[data-theme="light"] .breakdown-reason-pill.pill-bonus,
body.light-mode .breakdown-reason-pill.pill-bonus {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

[data-theme="light"] .breakdown-reason-pill.pill-deduction,
body.light-mode .breakdown-reason-pill.pill-deduction {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}

[data-theme="light"] #breakdown-modal-footer-stats,
body.light-mode #breakdown-modal-footer-stats {
    color: #0f172a !important;
}

[data-theme="light"] .breakdown-table-wrap,
body.light-mode .breakdown-table-wrap {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .breakdown-close-btn,
[data-theme="light"] #payroll-breakdown-modal button[onclick*="closePayrollBreakdownModal"],
body.light-mode .breakdown-close-btn,
body.light-mode #payroll-breakdown-modal button[onclick*="closePayrollBreakdownModal"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .breakdown-close-btn:hover,
[data-theme="light"] #payroll-breakdown-modal button[onclick*="closePayrollBreakdownModal"]:hover,
body.light-mode .breakdown-close-btn:hover,
body.light-mode #payroll-breakdown-modal button[onclick*="closePayrollBreakdownModal"]:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   CHAT SYSTEM & AI ASSISTANT (LIGHT MODE OVERRIDES)
   -------------------------------------------------------------------------- */
/* Chatbot FAB & Chat Launcher Buttons */
[data-theme="light"] .chatbot-fab,
[data-theme="light"] .chat-launcher,
body.light-mode .chatbot-fab,
body.light-mode .chat-launcher {
    background: #ffffff !important;
    border: 1.5px solid #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 0 15px rgba(14, 165, 233, 0.25) !important;
}

/* AI Assistant Window (IG Assistant) */
[data-theme="light"] .chatbot-window,
body.light-mode .chatbot-window {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .chatbot-header,
body.light-mode .chatbot-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chatbot-header-info h3,
body.light-mode .chatbot-header-info h3 {
    color: #0f172a !important;
}

[data-theme="light"] .chatbot-header-btn,
body.light-mode .chatbot-header-btn {
    color: #64748b !important;
}

[data-theme="light"] .chatbot-header-btn:hover,
body.light-mode .chatbot-header-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chatbot-messages,
body.light-mode .chatbot-messages {
    background: #f8fafc !important;
}

[data-theme="light"] .chat-message.bot .msg-bubble,
body.light-mode .chat-message.bot .msg-bubble {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .chat-message.user .msg-bubble,
body.light-mode .chat-message.user .msg-bubble {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] .chatbot-input-area,
body.light-mode .chatbot-input-area {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chatbot-input,
body.light-mode .chatbot-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chatbot-input:focus,
body.light-mode .chatbot-input:focus {
    border-color: #0284c7 !important;
    background: #ffffff !important;
}

/* Chat Contacts (Messages Window) */
[data-theme="light"] .chat-contacts-window,
body.light-mode .chat-contacts-window {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .chat-header,
body.light-mode .chat-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chat-header h3,
body.light-mode .chat-header h3 {
    color: #0f172a !important;
}

[data-theme="light"] .chat-search-bar,
body.light-mode .chat-search-bar {
    background: #ffffff !important;
}

[data-theme="light"] .chat-search-bar input,
body.light-mode .chat-search-bar input {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chat-search-bar input::placeholder,
body.light-mode .chat-search-bar input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .contact-list,
body.light-mode .contact-list {
    background: #ffffff !important;
}

[data-theme="light"] .contact-item:hover,
body.light-mode .contact-item:hover {
    background: #f0f9ff !important;
}

[data-theme="light"] .contact-avatar,
body.light-mode .contact-avatar {
    background: #e0f2fe !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .contact-info h4,
body.light-mode .contact-info h4 {
    color: #0f172a !important;
}

[data-theme="light"] .contact-info span,
body.light-mode .contact-info span {
    color: #64748b !important;
}

/* Active Chat Windows (Messenger Style) */
[data-theme="light"] .active-chat-window,
body.light-mode .active-chat-window {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .chat-window-header,
body.light-mode .chat-window-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chat-window-user h4,
body.light-mode .chat-window-user h4 {
    color: #0f172a !important;
}

[data-theme="light"] .chat-action-btn,
body.light-mode .chat-action-btn {
    color: #64748b !important;
}

[data-theme="light"] .chat-action-btn:hover,
body.light-mode .chat-action-btn:hover {
    color: #0f172a !important;
}

[data-theme="light"] .chat-messages,
body.light-mode .chat-messages {
    background: #f8fafc !important;
}

[data-theme="light"] .msg.received,
body.light-mode .msg.received {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .msg.sent,
body.light-mode .msg.sent {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] .chat-input-area,
body.light-mode .chat-input-area {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chat-input-area input,
body.light-mode .chat-input-area input {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chat-input-area input:focus,
body.light-mode .chat-input-area input:focus {
    border-color: #0284c7 !important;
    background: #ffffff !important;
}

[data-theme="light"] .chat-send-btn,
body.light-mode .chat-send-btn {
    color: #0284c7 !important;
}

[data-theme="light"] .chat-media-btn,
body.light-mode .chat-media-btn {
    color: #64748b !important;
}

[data-theme="light"] .chat-media-btn:hover,
body.light-mode .chat-media-btn:hover {
    color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   BACK TO DASHBOARD BUTTON (EMPLOYEE PROFILE OVERLAY)
   -------------------------------------------------------------------------- */
.btn-back-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.45rem 1rem;
    color: #38bdf8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.btn-back-dashboard:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(-3px);
}

[data-theme="light"] .btn-back-dashboard,
[data-theme="light"] #profile-overlay button[onclick*="profile-overlay"],
body.light-mode .btn-back-dashboard,
body.light-mode #profile-overlay button[onclick*="profile-overlay"] {
    background: #e0f2fe !important;
    border: 1px solid #7dd3fc !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15) !important;
}

[data-theme="light"] .btn-back-dashboard:hover,
[data-theme="light"] #profile-overlay button[onclick*="profile-overlay"]:hover,
body.light-mode .btn-back-dashboard:hover,
body.light-mode #profile-overlay button[onclick*="profile-overlay"]:hover {
    background: #bae6fd !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
    transform: translateX(-3px);
}

[data-theme="light"] .btn-back-dashboard i,
[data-theme="light"] .btn-back-dashboard svg,
[data-theme="light"] #profile-overlay button[onclick*="profile-overlay"] i,
[data-theme="light"] #profile-overlay button[onclick*="profile-overlay"] svg,
body.light-mode .btn-back-dashboard i,
body.light-mode .btn-back-dashboard svg,
body.light-mode #profile-overlay button[onclick*="profile-overlay"] i,
body.light-mode #profile-overlay button[onclick*="profile-overlay"] svg {
    color: #0284c7 !important;
    stroke: #0284c7 !important;
}

[data-theme="light"] .btn-sleek,
body.light-mode .btn-sleek {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .btn-sleek:hover,
body.light-mode .btn-sleek:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-sleek.danger,
body.light-mode .btn-sleek.danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #dc2626 !important;
}

[data-theme="light"] .btn-sleek.danger:hover,
body.light-mode .btn-sleek.danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-action-download,
body.light-mode .btn-action-download {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #059669 !important;
}

[data-theme="light"] .btn-action-download:hover,
body.light-mode .btn-action-download:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}




