:root {
    /* Brand Colors - Premium Dark Mode based on reference */
    --bg-color: #0a0c10;
    --surface: rgba(18, 22, 31, 0.75);
    --surface-hover: rgba(26, 32, 44, 0.85);
    --border: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --primary: #3b82f6; /* Electric Blue Glow */
    --primary-hover: #60a5fa;
    --secondary: #f97316; /* Orange Glow */
    --text: #f8fafc;
    --text-light: #f8fafc;
    --text-muted: #8b95a5;
    --danger: #ef4444;
    --success: #10b981;
    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-orange: rgba(249, 115, 22, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 80% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at -20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 40%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

/* Table and modal panels should NOT lift on hover */
.table-container.glass-panel:hover,
.modal-content.glass-panel:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

/* Sidebar Layout */
.sidebar {
    width: 280px;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar .logo {
    padding: 0 32px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 0 15px var(--glow-blue);
}

.sidebar .logo h2 {
    font-size: 24px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    padding: 0 16px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Sidebar Nav */
.nav-links::-webkit-scrollbar {
    width: 4px;
}
.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.nav-links::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
.nav-links::-webkit-scrollbar-track {
    background: transparent;
}


.nav-links li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    gap: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.nav-links li a i {
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.nav-links li.active a {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1);
}

.nav-links li.active a i {
    color: var(--primary);
    transform: scale(1.1);
}

/* ── Universal Sidebar "Your Day" Nav Item (Rule 44) ── */
.nav-links li.sidebar-your-day-item a {
    position: relative;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(245, 158, 11, 0.04);
    margin-bottom: 12px;
}
.nav-links li.sidebar-your-day-item a:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.nav-links li.sidebar-your-day-item a i {
    color: #fbbf24;
}
.nav-links li.sidebar-your-day-item.active a {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.16)) !important;
    color: #fde68a !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: inset 0 0 16px rgba(245, 158, 11, 0.12), 0 4px 14px rgba(245, 158, 11, 0.15) !important;
}
.nav-links li.sidebar-your-day-item.active a i {
    color: #fbbf24 !important;
    transform: scale(1.15) rotate(15deg);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}
[data-theme="light"] .nav-links li.sidebar-your-day-item a {
    border-color: rgba(217, 119, 6, 0.25);
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
}
[data-theme="light"] .nav-links li.sidebar-your-day-item.active a {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #78350f !important;
    border-color: rgba(217, 119, 6, 0.55) !important;
}

.user-info {
    padding: 24px 32px;
    border-top: 1px solid var(--border);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 48px;
    flex-grow: 1;
    width: calc(100% - 280px);
}

header {
    margin-bottom: 48px;
    animation: slideDownFade 0.6s ease;
}

header h1 {
    font-size: 36px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 24px;
}

/* Span classes for bento items */
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-span-1 { grid-row: span 1; }
.row-span-2 { grid-row: span 2; }

.bento-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-item h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 64px;
    font-weight: 700;
    color: var(--text);
    margin: auto 0;
}

.chart-container {
    position: relative;
    height: 100%;
    width: 100%;
    flex-grow: 1;
}

/* Tables */
.table-container {
    padding: 24px;
    overflow-x: auto;
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0 !important;
}

table.dataTable thead th {
    padding: 16px;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

table.dataTable tbody tr {
    background-color: transparent !important;
    transition: background-color 0.2s;
}

table.dataTable tbody tr td {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: var(--text);
    font-size: 14px;
}

table.dataTable tbody tr:hover {
    background-color: rgba(255,255,255,0.03) !important;
}

/* DataTables wrapper controls */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-muted) !important;
    font-size: 13px;
    margin: 8px 0;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-muted) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    transition: all 0.2s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: rgba(255,255,255,0.1) !important;
    background: none !important;
    border: none !important;
}

/* Custom Inputs & Dropdowns - High Contrast & Crisp Readability */
select,
select.dropdown-editor,
.dropdown-editor,
.dataTables_wrapper select {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px 14px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}

.dataTables_wrapper input {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px;
    padding: 6px 12px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dropdown-editor {
    min-width: 130px;
}

select:hover,
.dropdown-editor:hover,
.dataTables_wrapper select:hover {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background-color: #1e293b !important;
}

select:focus,
.dropdown-editor:focus,
.dataTables_wrapper select:focus,
.dataTables_wrapper input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    background-color: #1e293b !important;
}

/* Explicit option and optgroup styling to eliminate browser white-on-white bug */
select option,
select optgroup,
.dropdown-editor option,
.dropdown-editor optgroup,
.dataTables_wrapper select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

select option:checked,
.dropdown-editor option:checked,
.dataTables_wrapper select option:checked {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

select option:hover,
.dropdown-editor option:hover,
.dataTables_wrapper select option:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Disabled state */
select:disabled,
.dropdown-editor:disabled,
.dataTables_wrapper select:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* Priority Colors */
td.priority-cell[data-value="High"] .dropdown-editor, td.priority-cell[data-value="High"] {
    color: #ef4444; font-weight: 600;
}
td.priority-cell[data-value="Medium"] .dropdown-editor, td.priority-cell[data-value="Medium"] {
    color: #f59e0b; font-weight: 600;
}
td.priority-cell[data-value="Low"] .dropdown-editor, td.priority-cell[data-value="Low"] {
    color: #10b981; font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .span-3, .span-4 { grid-column: span 2; }
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: 80px;
        bottom: 0;
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    .main-content { margin-left: 0; width: 100%; padding: 24px; margin-bottom: 80px; }
    .sidebar .logo, .sidebar .user-info { display: none; }
    .nav-links { display: flex; flex-direction: row; width: 100%; align-items: center; margin: 0; }
    .nav-links li { flex: 1; }
    .nav-links li a {
        flex-direction: column;
        padding: 12px;
        font-size: 11px;
        gap: 6px;
        border-radius: 0;
        justify-content: center;
        margin: 0;
    }
    .nav-links li.active a {
        border-left: none;
        border-top: 3px solid var(--primary);
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent);
    }
}

/* Login Page */
.login-body {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #0a0c10 0%, #050608 100%);
}
.login-container { width: 100%; max-width: 400px; padding: 20px; z-index: 10; }
.login-glass {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px var(--glow-blue);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-glass h2 { font-size: 28px; margin-bottom: 5px; font-weight: 700; color: var(--text); }
.login-glass p { color: var(--text-muted); margin-bottom: 30px; }
.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.input-group:focus-within label { color: var(--primary); }

.input-group input, .input-group select, .input-group textarea, .input-group .dropdown-editor {
    width: 100% !important; padding: 12px 16px !important; background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border) !important; border-radius: 8px !important; color: var(--text) !important;
    outline: none !important; transition: all 0.3s ease !important;
    font-family: inherit !important; font-size: 14px !important;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus, .input-group .dropdown-editor:focus {
    border-color: var(--primary) !important; background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) !important;
}
.input-group select option {
    background-color: #0f172a;
    color: #ffffff;
}

.btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 16px;
    cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}

/* Override 100% width for any buttons inside table cells */
table td button,
table td .btn,
table td .btn-primary,
table td .btn-secondary,
table td .btn-success,
table td .btn-danger,
table td .btn-warning {
    width: auto !important;
    position: static !important;
}

/* Universal Table Action Button Group & Refined Compact Buttons */
.table-action-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    width: auto !important;
    max-width: fit-content !important;
    margin: 0 auto !important;
    flex-wrap: nowrap !important;
}

.table-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 26px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    user-select: none !important;
    outline: none !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;
}

/* Edit Action Button */
.table-action-btn.btn-action-edit {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
    height: 26px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
}
.table-action-btn.btn-action-edit:hover {
    background: rgba(59, 130, 246, 0.28) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}
.table-action-btn.btn-action-edit:active {
    transform: translateY(0) !important;
}

/* Workflow Journey (History) Action Button */
.table-action-btn.btn-action-history {
    background: rgba(139, 92, 246, 0.14) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    color: #c4b5fd !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
}
.table-action-btn.btn-action-history:hover {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: #a78bfa !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}
.table-action-btn.btn-action-history:active {
    transform: translateY(0) !important;
}

/* Sign Off / Approve Action Button */
.table-action-btn.btn-action-signoff {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #6ee7b7 !important;
    height: 26px !important;
    padding: 0 9px !important;
}
.table-action-btn.btn-action-signoff:hover {
    background: rgba(16, 185, 129, 0.32) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Return / Revisions Action Button */
.table-action-btn.btn-action-return {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
    height: 26px !important;
    padding: 0 9px !important;
}
.table-action-btn.btn-action-return:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

th.col-action, td.col-action,
table th.th-action, table td.td-action {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 160px !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
}
table td .table-action-group {
    width: auto !important;
    margin: 0 auto !important;
}
table td .table-action-group .btn-action-edit {
    width: auto !important;
    flex: 0 0 auto !important;
}
table td .table-action-group .btn-action-history {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    flex: 0 0 auto !important;
}

/* Complete Action Button */
.table-action-btn.btn-action-complete {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}
.table-action-btn.btn-action-complete:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Submit Action Button */
.table-action-btn.btn-action-submit {
    background: rgba(139, 92, 246, 0.18) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #c4b5fd !important;
}
.table-action-btn.btn-action-submit:hover {
    background: rgba(139, 92, 246, 0.32) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Asset Download Button */
.table-action-btn.btn-action-asset {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
    width: 28px !important;
    padding: 0 !important;
}
.table-action-btn.btn-action-asset:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Light Mode Overrides */
[data-theme="light"] .table-action-btn.btn-action-edit {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #1d4ed8 !important;
}
[data-theme="light"] .table-action-btn.btn-action-edit:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="light"] .table-action-btn.btn-action-history {
    background: rgba(100, 116, 139, 0.08) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
    color: #475569 !important;
}
[data-theme="light"] .table-action-btn.btn-action-history:hover {
    background: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

[data-theme="light"] .table-action-btn.btn-action-signoff {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #047857 !important;
}
[data-theme="light"] .table-action-btn.btn-action-signoff:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

[data-theme="light"] .table-action-btn.btn-action-return {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #b91c1c !important;
}
[data-theme="light"] .table-action-btn.btn-action-return:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}


.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.error-msg { color: var(--danger); margin-bottom: 20px; font-weight: 500; font-size: 14px; }

/* Section headings — consistent across all dashboards */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.section-heading i { margin-right: 8px; }

/* Status badge colour coding */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.in-production  { background: rgba(245,158,11,0.15);  color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-badge.published       { background: rgba(16,185,129,0.15);  color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.status-badge.approved        { background: rgba(16,185,129,0.15);  color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.status-badge.client-approval { background: rgba(139,92,246,0.15);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.status-badge.brief-pending   { background: rgba(239,68,68,0.15);   color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.status-badge.overdue         { background: rgba(239,68,68,0.2);    color: #ef4444; border: 1px solid rgba(239,68,68,0.4); }
.status-badge.pending         { background: rgba(239,68,68,0.15);   color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* Page Transition & Stagger Animations */
.page-transition {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.loaded .page-transition {
    opacity: 1;
    transform: none !important;
}
body.exiting .page-transition {
    opacity: 0;
    transform: translateY(-15px);
}

.stagger-1 { animation: staggerFadeUp 0.6s 0.1s both; }
.stagger-2 { animation: staggerFadeUp 0.6s 0.2s both; }
.stagger-3 { animation: staggerFadeUp 0.6s 0.3s both; }
.stagger-4 { animation: staggerFadeUp 0.6s 0.4s both; }

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

/* Enhancing Mobile Table scroll and Forms */
@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .span-1, .span-2, .span-3, .span-4 { grid-column: span 1; }
    .form-grid { grid-template-columns: 1fr; }
    .main-content { padding: 16px; margin-bottom: 90px; }
    .table-container { padding: 12px; border-radius: 12px; }
    header h1 { font-size: 28px; }
}

@media (max-width: 768px) {
    .sidebar {
        height: 70px;
        background: rgba(10, 12, 16, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links li a {
        font-size: 10px;
        padding: 8px;
    }
    .nav-links li a i {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════
   Universal Light / Day Mode Design Tokens
   ═══════════════════════════════════════════════ */
[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-hover: rgba(255, 255, 255, 0.98);
    --border: rgba(226, 232, 240, 0.85);
    --border-highlight: rgba(99, 102, 241, 0.28);
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #f97316;
    --text: #0f172a;
    --text-light: #0f172a;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --glow-blue: rgba(99, 102, 241, 0.25);
    --glow-orange: rgba(249, 115, 22, 0.25);

    /* Vibrant Light Mode Design System Accents */
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-fuchsia: #d946ef;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-sky: #0ea5e9;
}

[data-theme="light"] body {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(224, 231, 255, 0.65) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(254, 226, 226, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 253, 245, 0.55) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(243, 232, 255, 0.55) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .glass-panel:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.14), 0 6px 20px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 4px 0 30px rgba(99, 102, 241, 0.05) !important;
}

[data-theme="light"] header h1 {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .nav-links li a {
    color: #475569 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.22s ease !important;
}

[data-theme="light"] .nav-links li a:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    transform: translateX(3px);
}

[data-theme="light"] .nav-links li.active a {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.1)) !important;
    color: #4338ca !important;
    border: 1px solid rgba(99, 102, 241, 0.28) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .nav-links li.active a i {
    color: #4f46e5 !important;
}

[data-theme="light"] select,
[data-theme="light"] select.dropdown-editor,
[data-theme="light"] .dropdown-editor,
[data-theme="light"] .dataTables_wrapper select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="url"],
[data-theme="light"] textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] select option,
[data-theme="light"] .dropdown-editor option,
[data-theme="light"] .dataTables_wrapper select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] select option:checked,
[data-theme="light"] .dropdown-editor option:checked {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="light"] table.dataTable {
    color: #0f172a !important;
}

[data-theme="light"] table.dataTable thead th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] table.dataTable tbody tr {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

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

[data-theme="light"] table.dataTable tbody td {
    color: #1e293b !important;
    border-top: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_info,
[data-theme="light"] .dataTables_wrapper .dataTables_paginate,
[data-theme="light"] .dataTables_wrapper .dataTables_length,
[data-theme="light"] .dataTables_wrapper .dataTables_filter {
    color: #475569 !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_filter input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="light"] #workLogDrawer,
[data-theme="light"] #chatDrawer,
[data-theme="light"] #notificationDropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: #e2e8f0 !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .wl-kpi-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .wl-input-dark {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .wl-session-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .wl-session-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    background: #f8fafc !important;
}

[data-theme="light"] .wl-session-card.is-active {
    background: #f0fdf4 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12) !important;
}

[data-theme="light"] .wl-session-card div[style*="color: #f8fafc"],
[data-theme="light"] .wl-session-card div[style*="color:#f8fafc"] {
    color: #0f172a !important;
}

[data-theme="light"] .wl-session-card span[style*="color: #f1f5f9"],
[data-theme="light"] .wl-session-card span[style*="color:#f1f5f9"] {
    color: #1e293b !important;
}

[data-theme="light"] .wl-live-timer {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .wl-session-card.is-active .wl-live-timer {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #15803d !important;
}

[data-theme="light"] .wl-desc-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .wl-drawer-title,
[data-theme="light"] .chat-drawer-title {
    color: #0f172a !important;
}

/* Light Mode Headings & Typography */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0f172a !important;
}

[data-theme="light"] p {
    color: #475569;
}

[data-theme="light"] .text-muted {
    color: #64748b !important;
}

/* Light Mode Cards, Bento Grid, KPI Tiles - Luminous Glassmorphism */
[data-theme="light"] .metric-tile,
[data-theme="light"] .bento-box,
[data-theme="light"] .stat-card,
[data-theme="light"] .card,
[data-theme="light"] .summary-card,
[data-theme="light"] .bento-item {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.07), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease !important;
}

[data-theme="light"] .metric-tile:hover,
[data-theme="light"] .bento-box:hover,
[data-theme="light"] .stat-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 18px 38px -10px rgba(99, 102, 241, 0.16), 0 8px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* Vibrant Bento Category Aura & Border Accents */
[data-theme="light"] .stat-card:nth-child(1) {
    border-top: 3px solid #6366f1 !important;
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] .stat-card:nth-child(2),
[data-theme="light"] .stat-card[style*="border-bottom: 4px solid #a78bfa"] {
    border-top: 3px solid #8b5cf6 !important;
    box-shadow: 0 10px 25px -8px rgba(139, 92, 246, 0.14), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] .stat-card:nth-child(3),
[data-theme="light"] .stat-card[style*="border-bottom: 4px solid var(--primary)"] {
    border-top: 3px solid #3b82f6 !important;
    box-shadow: 0 10px 25px -8px rgba(59, 130, 246, 0.14), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] .stat-card:nth-child(4),
[data-theme="light"] .stat-card[style*="border-bottom: 4px solid var(--success)"] {
    border-top: 3px solid #10b981 !important;
    box-shadow: 0 10px 25px -8px rgba(16, 185, 129, 0.14), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
[data-theme="light"] .stat-card:nth-child(5),
[data-theme="light"] .stat-card[style*="border-bottom: 4px solid var(--danger)"] {
    border-top: 3px solid #ef4444 !important;
    box-shadow: 0 10px 25px -8px rgba(239, 68, 68, 0.14), 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .metric-tile .val,
[data-theme="light"] .bento-box .val,
[data-theme="light"] .stat-number,
[data-theme="light"] .stat-value {
    color: #0f172a !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* Light Mode Modals */
[data-theme="light"] .modal-content,
[data-theme="light"] .modal-dialog .modal-content,
[data-theme="light"] .custom-modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-content h1,
[data-theme="light"] .modal-content h2,
[data-theme="light"] .modal-content h3,
[data-theme="light"] .modal-content h4,
[data-theme="light"] .modal-content label {
    color: #0f172a !important;
}

[data-theme="light"] .modal-content .close,
[data-theme="light"] .modal-content .modal-close-btn {
    color: #64748b !important;
}

[data-theme="light"] .modal-content .close:hover,
[data-theme="light"] .modal-content .modal-close-btn:hover {
    color: #0f172a !important;
}

[data-theme="light"] .modal-backdrop {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
}

/* Light Mode Chat Drawer */
[data-theme="light"] .chat-drawer-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chat-bubble.mine {
    background: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="light"] .chat-bubble.theirs {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .chat-bubble-sender {
    color: #475569 !important;
}

[data-theme="light"] .chat-bubble-time {
    color: #94a3b8 !important;
}

[data-theme="light"] #chatInputContainer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] #chatMessageInput {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] #chatReplyBar {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .chat-quote-card {
    background: #e2e8f0 !important;
    border-left: 3px solid #2563eb !important;
    color: #334155 !important;
}

/* Light Mode Notification Center */
[data-theme="light"] .notif-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .notif-item {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}

[data-theme="light"] .notif-item:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .notif-item.unread {
    background: #eff6ff !important;
}

/* Light Mode Status Badges */
[data-theme="light"] .status-badge.in-production,
[data-theme="light"] .badge-in-production,
[data-theme="light"] span.badge-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

[data-theme="light"] .status-badge.published,
[data-theme="light"] .status-badge.approved,
[data-theme="light"] .badge-approved,
[data-theme="light"] span.badge-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .status-badge.client-approval,
[data-theme="light"] .status-badge.submitted,
[data-theme="light"] .badge-submitted,
[data-theme="light"] span.badge-info {
    background: #ede9fe !important;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe !important;
}

.badge-overdue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
    white-space: nowrap;
}

@keyframes overdue-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
        box-shadow: 0 0 8px 3px rgba(239, 68, 68, 0.9);
    }
}

.overdue-blink-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: overdue-blink 1.2s infinite ease-in-out;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-on-hold,
.status-badge.on-hold {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-action-hold {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    color: #fda4af !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s !important;
}
.btn-action-hold:hover {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #fff !important;
}

.btn-action-resume {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s !important;
}
.btn-action-resume:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #fff !important;
}

[data-theme="light"] .status-badge.overdue,
[data-theme="light"] .badge-overdue,
[data-theme="light"] span.badge-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

[data-theme="light"] .badge-on-hold,
[data-theme="light"] .status-badge.on-hold {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border: 1px solid #fecdd3 !important;
}

[data-theme="light"] .status-badge.brief-pending,
[data-theme="light"] .status-badge.pending {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Light Mode View Mode Switchers & Floating Tabs */
[data-theme="light"] .view-mode-toggle {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .view-mode-btn {
    color: #475569 !important;
}

[data-theme="light"] .view-mode-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="light"] .floating-drawer-tab-right,
[data-theme="light"] .floating-drawer-tab-left {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .floating-drawer-tab-right:hover,
[data-theme="light"] .floating-drawer-tab-left:hover {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
    border-color: #94a3b8 !important;
}

/* Light Mode DataTables Enhanced Grid */
[data-theme="light"] table.dataTable tbody tr.even {
    background-color: #f8fafc !important;
}

[data-theme="light"] table.dataTable tbody tr.odd {
    background-color: #ffffff !important;
}

[data-theme="light"] table.dataTable tbody tr:hover td {
    background-color: #eff6ff !important;
}

[data-theme="light"] table.dataTable th,
[data-theme="light"] table.dataTable td {
    border-color: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════
   Universal Light Mode High-Contrast Overrides
   ═══════════════════════════════════════════════ */
[data-theme="light"] .text-muted,
[data-theme="light"] p.text-muted,
[data-theme="light"] span.text-muted {
    color: #334155 !important;
}

[data-theme="light"] [style*="color:#d1fae5"],
[data-theme="light"] [style*="color: #d1fae5"],
[data-theme="light"] [style*="color:#6ee7b7"],
[data-theme="light"] [style*="color: #6ee7b7"],
[data-theme="light"] [style*="color:#86efac"],
[data-theme="light"] [style*="color: #86efac"],
[data-theme="light"] [style*="color:#a7f3d0"],
[data-theme="light"] [style*="color: #a7f3d0"] {
    color: #047857 !important;
}

[data-theme="light"] [style*="color:#fbbf24"],
[data-theme="light"] [style*="color: #fbbf24"],
[data-theme="light"] [style*="color:#fcd34d"],
[data-theme="light"] [style*="color: #fcd34d"],
[data-theme="light"] [style*="color:#fde68a"],
[data-theme="light"] [style*="color: #fde68a"],
[data-theme="light"] [style*="color:#f59e0b"],
[data-theme="light"] [style*="color: #f59e0b"] {
    color: #b45309 !important;
}

[data-theme="light"] [style*="color:#f87171"],
[data-theme="light"] [style*="color: #f87171"],
[data-theme="light"] [style*="color:#fca5a5"],
[data-theme="light"] [style*="color: #fca5a5"],
[data-theme="light"] [style*="color:#ef4444"],
[data-theme="light"] [style*="color: #ef4444"] {
    color: #b91c1c !important;
}

[data-theme="light"] [style*="color:#93c5fd"],
[data-theme="light"] [style*="color: #93c5fd"],
[data-theme="light"] [style*="color:#60a5fa"],
[data-theme="light"] [style*="color: #60a5fa"],
[data-theme="light"] [style*="color:#7dd3fc"],
[data-theme="light"] [style*="color: #7dd3fc"],
[data-theme="light"] [style*="color:#38bdf8"],
[data-theme="light"] [style*="color: #38bdf8"] {
    color: #1d4ed8 !important;
}

[data-theme="light"] [style*="color:#c4b5fd"],
[data-theme="light"] [style*="color: #c4b5fd"],
[data-theme="light"] [style*="color:#a78bfa"],
[data-theme="light"] [style*="color: #a78bfa"],
[data-theme="light"] [style*="color:#8b5cf6"],
[data-theme="light"] [style*="color: #8b5cf6"] {
    color: #6d28d9 !important;
}

[data-theme="light"] .working-feed-item,
[data-theme="light"] #amWorkingFeed > div,
[data-theme="light"] #clWorkingFeed > div,
[data-theme="light"] #cooWorkingFeed > div,
[data-theme="light"] #workingFeed > div,
[data-theme="light"] div[style*="background:rgba(16,185,129"],
[data-theme="light"] div[style*="background: rgba(16, 185, 129"],
[data-theme="light"] div[style*="background:rgba(16, 185, 129"] {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

[data-theme="light"] #amWorkingFeed > div strong,
[data-theme="light"] #clWorkingFeed > div strong,
[data-theme="light"] #cooWorkingFeed > div strong,
[data-theme="light"] #workingFeed > div strong,
[data-theme="light"] .working-feed-item strong {
    color: #047857 !important;
}

[data-theme="light"] div[style*="background:rgba(59,130,246"],
[data-theme="light"] div[style*="background: rgba(59, 130, 246"],
[data-theme="light"] span[style*="background:rgba(59,130,246"],
[data-theme="light"] span[style*="background: rgba(59, 130, 246"] {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

[data-theme="light"] div[style*="background:rgba(139,92,246"],
[data-theme="light"] div[style*="background: rgba(139, 92, 246"],
[data-theme="light"] span[style*="background:rgba(139,92,246"],
[data-theme="light"] span[style*="background: rgba(139, 92, 246"],
[data-theme="light"] div[style*="background:rgba(167,139,250"],
[data-theme="light"] div[style*="background: rgba(167, 139, 250"],
[data-theme="light"] span[style*="background:rgba(167,139,250"],
[data-theme="light"] span[style*="background: rgba(167, 139, 250"] {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #5b21b6 !important;
}

[data-theme="light"] div[style*="background:rgba(245,158,11"],
[data-theme="light"] div[style*="background: rgba(245, 158, 11"],
[data-theme="light"] span[style*="background:rgba(245,158,11"],
[data-theme="light"] span[style*="background: rgba(245, 158, 11"] {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

[data-theme="light"] div[style*="background:rgba(239,68,68"],
[data-theme="light"] div[style*="background: rgba(239, 68, 68"],
[data-theme="light"] span[style*="background:rgba(239,68,68"],
[data-theme="light"] span[style*="background: rgba(239, 68, 68"] {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

[data-theme="light"] .am-analytics-grid .am-metric,
[data-theme="light"] .bento-item,
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.90) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 25px -8px rgba(99, 102, 241, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03) !important;
    border-radius: 16px !important;
}

[data-theme="light"] .am-analytics-grid .am-metric h3,
[data-theme="light"] .bento-item h3,
[data-theme="light"] .stat-card h3 {
    color: #334155 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .am-metric-value {
    font-weight: 800 !important;
}

[data-theme="light"] .am-chart-panel h2,
[data-theme="light"] .ceo-card-title,
[data-theme="light"] .section-heading {
    color: #0f172a !important;
}

[data-theme="light"] #amWorkingCount,
[data-theme="light"] #clWorkingCount,
[data-theme="light"] #cooWorkingCount,
[data-theme="light"] #executiveWorkingCount {
    color: #334155 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .ceo-nav-tab {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    font-weight: 700 !important;
    transition: all 0.22s ease !important;
}
[data-theme="light"] .ceo-nav-tab:hover {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    transform: translateY(-1px);
}
[data-theme="light"] .ceo-nav-tab.active-tab {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35) !important;
}

/* Light text overrides across all cards and panels in light mode */
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #e2e8f0"],
[data-theme="light"] [style*="color:#cbd5e1"],
[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#f1f5f9"],
[data-theme="light"] [style*="color: #f1f5f9"],
[data-theme="light"] [style*="color:#f8fafc"],
[data-theme="light"] [style*="color: #f8fafc"],
[data-theme="light"] [style*="color:#f3f4f6"],
[data-theme="light"] [style*="color: #f3f4f6"],
[data-theme="light"] [style*="color:#e5e7eb"],
[data-theme="light"] [style*="color: #e5e7eb"],
[data-theme="light"] [style*="color:#d1d5db"],
[data-theme="light"] [style*="color: #d1d5db"],
[data-theme="light"] [style*="color:var(--text-light)"],
[data-theme="light"] [style*="color: var(--text-light)"] {
    color: #1e293b !important;
}

[data-theme="light"] div[style*="background: rgba(15, 23, 42, 0.6)"],
[data-theme="light"] div[style*="background:rgba(15, 23, 42, 0.6)"] {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] div[style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.03)"],
[data-theme="light"] div[style*="background:rgba(255,255,255,0.05)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="light"] div[style*="background:rgba(255,255,255,0.06)"],
[data-theme="light"] div[style*="background: rgba(255, 255, 255, 0.06)"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ═══════════════════════════════════════════════
   Universal PDF Export Styling
   ═══════════════════════════════════════════════ */
.pdf-export-template {
    display: none;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 24px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.pdf-export-template table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 22px;
    font-size: 11px;
}

.pdf-export-template th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 10px;
    font-weight: 700;
    text-align: left;
}

.pdf-export-template td {
    border: 1px solid #e2e8f0 !important;
    padding: 7px 10px;
    color: #334155 !important;
    vertical-align: top;
    line-height: 1.4;
}

.pdf-export-template tr {
    page-break-inside: avoid !important;
}

.pdf-export-template tr:nth-child(even) td {
    background: #f8fafc !important;
}

.pdf-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.pdf-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding: 7px 12px;
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    margin-top: 18px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    page-break-inside: avoid !important;
}

.pdf-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    page-break-inside: avoid !important;
}

.pdf-kpi-card .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pdf-kpi-card .val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.pdf-kpi-card .sub {
    font-size: 10px;
    color: #64748b;
    margin-top: 3px;
}

.pdf-split-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    page-break-inside: avoid !important;
}

.pdf-split-col {
    flex: 1;
    min-width: 0;
}

.pdf-trajectory-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    page-break-inside: avoid !important;
}

.pdf-trajectory-card h4 {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-trajectory-card p {
    font-size: 11px;
    color: #334155;
    line-height: 1.45;
    margin: 0;
}

.pdf-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pdf-badge-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.pdf-badge-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.pdf-badge-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.pdf-badge-info    { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.pdf-badge-primary { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.pdf-badge-dark    { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* ==========================================================================
   Universal Static Modal System (Cross-Role UI Standardization)
   Eliminates awkward scrolling; keeps modals static, centered, and 2-column.
   ========================================================================== */
.modal,
.modal-overlay,
.universal-modal {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(10, 15, 29, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    overflow: hidden !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.modal[style*="display: none"],
.modal[style*="display:none"],
.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"],
.universal-modal[style*="display: none"],
.universal-modal[style*="display:none"] {
    display: none !important;
}

.modal[style*="display: block"],
.modal[style*="display: flex"],
.universal-modal[style*="display: block"],
.universal-modal[style*="display: flex"],
.modal.show,
.universal-modal.show {
    display: flex !important;
}

body.modal-open {
    overflow: hidden !important;
}


.modal-content,
.universal-modal-card {
    background: var(--surface) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    max-width: 680px !important;
    box-sizing: border-box !important;
    padding: 22px 26px !important;
    margin: 0 auto !important;
    position: relative !important;
    max-height: calc(100vh - 40px);
}

@media (max-height: 720px) {
    .modal-content,
    .universal-modal-card {
        max-height: 94vh;
        overflow-y: auto !important;
    }
}

.modal-form-grid,
.form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
    margin-top: 14px !important;
}

.modal-form-group,
.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
}

.modal-form-group.full-width,
.form-group.full-width {
    grid-column: 1 / -1 !important;
}

.modal-form-group label,
.form-group label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    margin-bottom: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header-row h2,
.modal-header-row h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.modal-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Light Theme Modal Overrides */
[data-theme="light"] .modal,
[data-theme="light"] .modal-overlay,
[data-theme="light"] .universal-modal {
    background: rgba(15, 23, 42, 0.6) !important;
}

[data-theme="light"] .universal-modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .modal-header-row {
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-actions-row {
    border-top-color: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE COMPREHENSIVE CROSS-ROLE READABILITY ENHANCEMENTS
   Adhering to WCAG AA contrast standards across all dashboards
   ═══════════════════════════════════════════════════════════════ */

/* 1. Global Buttons & Action Elements with Inline RGBA Styles */
[data-theme="light"] button[style*="background: rgba(16, 185, 129"],
[data-theme="light"] button[style*="background:rgba(16, 185, 129"],
[data-theme="light"] button[style*="background:rgba(16,185,129"],
[data-theme="light"] .btn[style*="background: rgba(16, 185, 129"],
[data-theme="light"] .btn[style*="background:rgba(16, 185, 129"],
[data-theme="light"] .btn[style*="background:rgba(16,185,129"] {
    background: #ecfdf5 !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
    font-weight: 700 !important;
}
[data-theme="light"] button[style*="background: rgba(16, 185, 129"]:hover,
[data-theme="light"] button[style*="background:rgba(16, 185, 129"]:hover,
[data-theme="light"] .btn[style*="background: rgba(16, 185, 129"]:hover,
[data-theme="light"] .btn[style*="background:rgba(16, 185, 129"]:hover {
    background: #d1fae5 !important;
    border-color: #059669 !important;
    color: #047857 !important;
}

[data-theme="light"] button[style*="background: rgba(59, 130, 246"],
[data-theme="light"] button[style*="background:rgba(59, 130, 246"],
[data-theme="light"] button[style*="background:rgba(59,130,246"],
[data-theme="light"] .btn[style*="background: rgba(59, 130, 246"],
[data-theme="light"] .btn[style*="background:rgba(59, 130, 246"],
[data-theme="light"] .btn[style*="background:rgba(59,130,246"] {
    background: #eff6ff !important;
    border: 1px solid #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15) !important;
    font-weight: 700 !important;
}
[data-theme="light"] button[style*="background: rgba(59, 130, 246"]:hover,
[data-theme="light"] button[style*="background:rgba(59, 130, 246"]:hover,
[data-theme="light"] .btn[style*="background: rgba(59, 130, 246"]:hover,
[data-theme="light"] .btn[style*="background:rgba(59, 130, 246"]:hover {
    background: #dbeafe !important;
    border-color: #2563eb !important;
    color: #1e40af !important;
}

[data-theme="light"] button[style*="background: rgba(167, 139, 250"],
[data-theme="light"] button[style*="background:rgba(167, 139, 250"],
[data-theme="light"] button[style*="background:rgba(167,139,250"],
[data-theme="light"] .btn[style*="background: rgba(167, 139, 250"],
[data-theme="light"] .btn[style*="background:rgba(167, 139, 250"],
[data-theme="light"] .btn[style*="background:rgba(167,139,250"] {
    background: #f5f3ff !important;
    border: 1px solid #8b5cf6 !important;
    color: #5b21b6 !important;
    font-weight: 700 !important;
}

/* Timeframe buttons: Active and inactive defaults in light mode */
[data-theme="light"] button[id^="btnTimeframe"] {
    font-weight: 600 !important;
}
[data-theme="light"] #btnTimeframeAll,
[data-theme="light"] button[id^="btnTimeframe"][style*="background: rgb(37, 99, 235)"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background: #2563eb"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background: rgba(59, 130, 246"] {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}
[data-theme="light"] button[id^="btnTimeframe"][style*="background: rgba(255, 255, 255, 0.05)"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background:rgba(255, 255, 255, 0.05)"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background:rgba(255,255,255,0.05)"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background: rgb(241, 245, 249)"],
[data-theme="light"] button[id^="btnTimeframe"][style*="background: #f1f5f9"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: none !important;
}
[data-theme="light"] button[id^="btnTimeframe"][style*="background: rgba(255, 255, 255, 0.05)"]:hover,
[data-theme="light"] button[id^="btnTimeframe"][style*="background:rgba(255,255,255,0.05)"]:hover,
[data-theme="light"] button[id^="btnTimeframe"][style*="background: #f1f5f9"]:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Topbar Header Utility Buttons in Light Mode */
[data-theme="light"] .main-content > div:first-child button.glass-panel,
[data-theme="light"] #headerNotificationBtn,
[data-theme="light"] #themeToggleBtn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .main-content > div:first-child button.glass-panel:hover,
[data-theme="light"] #headerNotificationBtn:hover,
[data-theme="light"] #themeToggleBtn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .main-content > div:first-child a[href="/profile"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
[data-theme="light"] .main-content > div:first-child a[href="/profile"]:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .main-content > div:first-child a[href="/logout"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
}
[data-theme="light"] .main-content > div:first-child a[href="/logout"]:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #f87171 !important;
}

/* Date & Designer filter panels in toolbars */
[data-theme="light"] .ceo-date-filter-panel,
[data-theme="light"] .cl-date-filter-panel,
[data-theme="light"] .cl-designer-filter-panel,
[data-theme="light"] .coo-date-filter-panel,
[data-theme="light"] .am-date-filter-panel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] #clExportDesignerFilter {
    color: #0f172a !important;
}
[data-theme="light"] #clExportDesignerFilter option {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] #clExportDesignerOnlyBtn {
    background: #f5f3ff !important;
    border: 1px solid #8b5cf6 !important;
    color: #6d28d9 !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.15) !important;
}
[data-theme="light"] #clExportDesignerOnlyBtn:hover {
    background: #ede9fe !important;
    color: #5b21b6 !important;
}

[data-theme="light"] #ceoExportDateFilter,
[data-theme="light"] #clExportDateFilter,
[data-theme="light"] input[type="date"].glass-panel,
[data-theme="light"] input[type="date"] {
    color: #0f172a !important;
    background: #ffffff !important;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.2) !important;
    cursor: pointer !important;
}

/* Team Pulse Working Feeds */
[data-theme="light"] #executiveWorkingFeed > div,
[data-theme="light"] #amWorkingFeed > div,
[data-theme="light"] #clWorkingFeed > div,
[data-theme="light"] #cooWorkingFeed > div,
[data-theme="light"] #workingFeed > div,
[data-theme="light"] .working-feed-item {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08) !important;
}
[data-theme="light"] .working-feed-item strong {
    color: #047857 !important;
}
[data-theme="light"] .working-feed-item span[style*="color:#93c5fd"],
[data-theme="light"] .working-feed-item span[style*="color: #93c5fd"] {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
}

/* Break Banners across Dashboards */
[data-theme="light"] .working-feed-item[style*="rgba(245,158,11"],
[data-theme="light"] .working-feed-item[style*="rgba(245, 158, 11"],
[data-theme="light"] #designerActiveBreakBanner {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.1) !important;
}
[data-theme="light"] #designerActiveBreakBanner span,
[data-theme="light"] #designerActiveBreakBanner p {
    color: #78350f !important;
}

/* Workflow Execution Journey Modal */
[data-theme="light"] #workflowHistoryModal .modal-content,
[data-theme="light"] #workflowHistoryModal .universal-modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] #whmChainContainer > div {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] #whmTimelineContainer {
    border-left-color: #cbd5e1 !important;
}
[data-theme="light"] #whmTimelineContainer > div {
    color: #0f172a !important;
}
[data-theme="light"] #whmTimelineContainer span[style*="color:#fff"],
[data-theme="light"] #whmTimelineContainer span[style*="color: #fff"],
[data-theme="light"] #whmTimelineContainer span[style*="color:white"] {
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-theme="light"] #whmTimelineContainer div[style*="color:#d1d5db"],
[data-theme="light"] #whmTimelineContainer div[style*="color: #d1d5db"] {
    color: #334155 !important;
}
[data-theme="light"] #whmTimelineContainer div[style*="background:rgba(0,0,0,0.25)"],
[data-theme="light"] #whmTimelineContainer div[style*="background: rgba(0, 0, 0, 0.25)"] {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

/* Production Task Detail Modal */
[data-theme="light"] #productionTaskDetailModal .modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] #ptmDeliverableId {
    color: #1d4ed8 !important;
}
[data-theme="light"] #ptmTitle {
    color: #0f172a !important;
}
[data-theme="light"] #ptmTimeCounter {
    color: #0f172a !important;
}

/* ==========================================================================
   UNIVERSAL "YOUR DAY" & MONTHLY CONTENT MATRIX (MCP) DESIGN TOKENS
   ========================================================================== */
.your-day-welcome-card {
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(139, 92, 246, 0.12), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.your-day-welcome-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
    pointer-events: none;
}
.gemma-quote-card {
    border-radius: 12px;
    padding: 16px 20px;
    background: rgba(10, 15, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #f59e0b;
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.gemma-quote-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #fde68a;
    font-style: italic;
    font-weight: 500;
    margin: 0;
}
.gemma-quote-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mcp-project-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}
.mcp-project-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}
.mcp-project-pill.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #7dd3fc;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.mcp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.mcp-cal-header {
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}
.mcp-cal-cell {
    min-height: 105px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    position: relative;
}
.mcp-cal-cell:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}
.mcp-cal-cell.today {
    border-color: #fbbf24;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
}
.mcp-cal-date-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.mcp-cal-cell.today .mcp-cal-date-num {
    color: #fbbf24;
}
.mcp-post-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s ease;
}
.mcp-post-badge:hover {
    transform: scale(1.02);
    filter: brightness(1.15);
}
.mcp-sheet-container {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.mcp-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 1650px;
}
.mcp-sheet-table thead th {
    background: rgba(10, 15, 29, 0.95);
    padding: 12px 14px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-align: left;
}
.mcp-sheet-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}
.mcp-sheet-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}
.mcp-sheet-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* Light Theme Overrides for Your Day & MCP */
[data-theme="light"] .your-day-welcome-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(99, 102, 241, 0.08), #ffffff) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .gemma-quote-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #d97706 !important;
}
[data-theme="light"] .gemma-quote-text {
    color: #92400e !important;
}
[data-theme="light"] .mcp-cal-cell {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] .mcp-cal-cell:hover {
    background: #f8fafc !important;
}
[data-theme="light"] .mcp-cal-header {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
[data-theme="light"] .mcp-sheet-table thead th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom-color: #cbd5e1 !important;
}
[data-theme="light"] .mcp-sheet-table tbody tr {
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .mcp-sheet-table tbody tr:hover {
    background: #f8fafc !important;
}




