/* =============================================
   Light Theme Override
   Activated when html[data-theme="light"]
   Reverses dark-luxury overrides back to light
   ============================================= */

html[data-theme="light"] {
    /* === Reset CSS Variables to Light === */
    --gold: #b8922e;
    --gold-rgb: 184, 146, 46;
    --gold-light: rgba(184, 146, 46, 0.1);
    --gold-glow: rgba(184, 146, 46, 0.2);
    --bg-deep: #f5f7fa;
    --bg-surface: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(184, 146, 46, 0.04);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(184, 146, 46, 0.3);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(15px);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 40px rgba(184, 146, 46, 0.1);
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syncopate', sans-serif;

    /* Original style.css variables - override dark-luxury :root overrides */
    --primary-color: #D4A94A;
    --primary-dark: #b8922e;
    --primary-light: #e8c56d;
    --secondary-color: #e8c56d;
    --accent-color: #48bb78;
    --warning-color: #f6ad55;
    --danger-color: #fc8181;
    --success-color: #68d391;
    --text-dark: #1a202c;
    --text-light: #718096;
    --text-white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #edf2f7;
    --bg-gradient: linear-gradient(135deg, #D4A94A 0%, #e8c56d 100%);
    --bg-gradient-light: linear-gradient(135deg, rgba(212, 169, 74, 0.1) 0%, rgba(232, 197, 109, 0.1) 100%);
    --gradient: linear-gradient(135deg, #D4A94A 0%, #e8c56d 100%);
    --gradient-light: linear-gradient(135deg, #D4A94A 0%, #e8c56d 100%);
    --gradient-accent: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* === Body === */
html[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    color: #1a202c !important;
}

/* === Global Announcement === */
html[data-theme="light"] .global-announcement-bar {
    background: linear-gradient(90deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .global-announcement-bar .announcement-content {
    color: #ffffff !important;
}

html[data-theme="light"] .global-announcement-bar .announcement-icon {
    color: #ffffff !important;
}

/* === Dashboard Hero === */
html[data-theme="light"] .dashboard-hero {
    background: linear-gradient(135deg, #f5f0e0 0%, #e8d5a8 25%, #dcc090 50%, #d4a94a 75%, #c49530 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Time-of-Day Sky Themes - Light versions */
html[data-theme="light"] .dashboard-hero.sky-night {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #16213e 100%) !important;
}

html[data-theme="light"] .dashboard-hero.sky-dawn {
    background: linear-gradient(135deg, #fde8c8 0%, #f5cfa0 25%, #e8b878 50%, #d4a94a 75%, #c49530 100%) !important;
}

html[data-theme="light"] .dashboard-hero.sky-late-morning {
    background: linear-gradient(135deg, #f5f0e0 0%, #ede0c8 25%, #e0cfa0 50%, #d4a94a 75%, #b8922e 100%) !important;
}

html[data-theme="light"] .dashboard-hero.sky-midday {
    background: linear-gradient(135deg, #faf5e8 0%, #f0e5cc 25%, #e5d5a8 50%, #d4a94a 75%, #b8922e 100%) !important;
}

html[data-theme="light"] .dashboard-hero.sky-sunset {
    background: linear-gradient(135deg, #fce4c0 0%, #f0b878 25%, #e09050 50%, #c47030 75%, #a05020 100%) !important;
}

html[data-theme="light"] .dashboard-hero.sky-dawn .hero-sun {
    display: block !important;
    background-color: #fff8e1 !important;
    box-shadow: 0 0 30px 8px rgba(255,248,225,0.7), 0 0 60px 15px rgba(255,200,50,0.3), 0 0 20px 5px rgba(255,248,225,0.5) inset !important;
    opacity: 1 !important;
}
html[data-theme="light"] .dashboard-hero.sky-dawn .hero-sun::before {
    content: '' !important;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) !important;
    width: 350%; height: 50% !important;
    background: radial-gradient(ellipse at center, rgba(255,248,225,0.3) 0%, rgba(255,200,50,0.1) 40%, transparent 70%) !important;
    border-radius: 50%; filter: blur(8px); pointer-events: none !important;
}
html[data-theme="light"] .dashboard-hero.sky-dawn .hero-sun::after {
    content: '' !important;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) !important;
    width: 50%; height: 400% !important;
    background: radial-gradient(ellipse at center, rgba(255,248,225,0.2) 0%, rgba(255,200,50,0.08) 40%, transparent 70%) !important;
    border-radius: 50%; filter: blur(8px); pointer-events: none !important;
}

html[data-theme="light"] .dashboard-hero.sky-late-morning .hero-sun {
    display: block !important;
    background-color: #fffde7 !important;
    box-shadow: 0 0 25px 6px rgba(255,253,231,0.7), 0 0 50px 12px rgba(255,215,0,0.3), 0 0 15px 4px rgba(255,253,231,0.4) inset !important;
    opacity: 1 !important;
}

html[data-theme="light"] .dashboard-hero.sky-midday .hero-sun {
    display: block !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 40px 10px rgba(255,255,255,0.8), 0 0 70px 20px rgba(255,200,50,0.35), 0 0 25px 8px rgba(255,255,255,0.6) inset !important;
    opacity: 1 !important;
}

html[data-theme="light"] .dashboard-hero.sky-sunset .hero-sun {
    display: block !important;
    background: radial-gradient(circle, rgba(255,230,180,0.95) 0%, rgba(255,190,80,0.7) 30%, rgba(230,120,40,0.3) 55%, transparent 75%) !important;
    box-shadow: 0 0 35px 10px rgba(255,200,100,0.4), 0 0 70px 25px rgba(230,120,40,0.2), 0 0 140px 55px rgba(200,80,20,0.08) !important;
    opacity: 1 !important;
}
html[data-theme="light"] .dashboard-hero.sky-sunset .hero-sun::before {
    content: '' !important;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) !important;
    width: 380%; height: 45% !important;
    background: radial-gradient(ellipse at center, rgba(255,200,100,0.25) 0%, rgba(230,120,40,0.08) 40%, transparent 70%) !important;
    border-radius: 50%; filter: blur(8px); pointer-events: none !important;
}
html[data-theme="light"] .dashboard-hero.sky-sunset .hero-sun::after {
    content: '' !important;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) !important;
    width: 45%; height: 450% !important;
    background: radial-gradient(ellipse at center, rgba(255,200,100,0.15) 0%, rgba(230,120,40,0.05) 40%, transparent 70%) !important;
    border-radius: 50%; filter: blur(8px); pointer-events: none !important;
}

html[data-theme="light"] .dashboard-hero.sky-night .hero-sun {
    display: none !important;
}

html[data-theme="light"] .dashboard-hero::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%) !important;
}

html[data-theme="light"] .hero-title {
    color: #ffffff !important;
}

html[data-theme="light"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* === Navbar === */
html[data-theme="light"] body:has(.dashboard-hero) .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] body:has(.dashboard-hero) .navbar .nav-link {
    color: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="light"] body:has(.dashboard-hero) .navbar .nav-link:hover {
    color: #b8922e !important;
    background: rgba(184, 146, 46, 0.08) !important;
}

html[data-theme="light"] body:has(.dashboard-hero) .nav-brand span {
    color: #b8922e !important;
}

/* Nav toggle / dropdown */
html[data-theme="light"] .nav-toggle-btn {
    background: rgba(184, 146, 46, 0.08) !important;
    border: 1px solid rgba(184, 146, 46, 0.2) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .nav-toggle-btn:hover {
    background: #b8922e !important;
    color: #ffffff !important;
}

html[data-theme="light"] .nav-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .dropdown-item {
    color: #4a5568 !important;
}

html[data-theme="light"] .dropdown-item:hover {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .dropdown-item svg {
    color: #b8922e;
}

html[data-theme="light"] .dropdown-divider {
    background: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .admin-link {
    color: #b8922e !important;
    background: rgba(184, 146, 46, 0.08) !important;
}

/* Hero thought cloud */
html[data-theme="light"] .hero-thought-cloud {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .cloud-icon {
    color: #b8922e !important;
}

html[data-theme="light"] .cloud-content {
    color: #4a5568 !important;
}

html[data-theme="light"] .cloud-content strong {
    color: #b8922e !important;
}

/* === Tabs === */
html[data-theme="light"] .main-tabs {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .nav-tab {
    color: #718096 !important;
}

html[data-theme="light"] .nav-tab:hover {
    color: #1a202c !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

/* === Control Bar === */
html[data-theme="light"] .agents-control-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .control-title {
    color: #b8922e !important;
}

/* Search input */
html[data-theme="light"] .global-search-input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .global-search-input::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .global-search-input:focus {
    border-color: #b8922e !important;
    box-shadow: 0 0 0 2px rgba(184, 146, 46, 0.15) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .global-search-wrapper .search-icon {
    color: #a0aec0 !important;
}

/* Need Agent Button */
html[data-theme="light"] .btn-need-agent {
    color: #b8922e !important;
    border: 1px solid #b8922e !important;
    background: transparent !important;
}

html[data-theme="light"] .btn-need-agent::after {
    background: #b8922e !important;
}

html[data-theme="light"] .btn-need-agent:hover {
    color: #ffffff !important;
    border-color: #b8922e !important;
}

/* View buttons */
html[data-theme="light"] .view-btn {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #718096 !important;
}

html[data-theme="light"] .view-btn.active {
    background: #b8922e !important;
    color: #ffffff !important;
    border-color: #b8922e !important;
}

/* === Persona Cards === */
html[data-theme="light"] .persona-card-modern {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .persona-card-modern:hover {
    border-color: rgba(184, 146, 46, 0.3) !important;
    box-shadow: 0 8px 30px rgba(184, 146, 46, 0.1) !important;
}

html[data-theme="light"] .persona-card-modern .card-gradient {
    background: linear-gradient(180deg, rgba(184, 146, 46, 0.04) 0%, transparent 40%) !important;
}

html[data-theme="light"] .persona-card-modern .persona-name,
html[data-theme="light"] .persona-card-modern h3 {
    color: #1a202c !important;
}

html[data-theme="light"] .persona-card-modern .persona-role,
html[data-theme="light"] .persona-card-modern .persona-details,
html[data-theme="light"] .persona-card-modern p {
    color: #4a5568 !important;
}

/* Persona card category-specific badges */
html[data-theme="light"] .persona-card-modern[data-category*="client"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="strategy"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="data"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="specialist"] .category-badge {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .persona-card-modern .category-badge svg {
    opacity: 0.7;
}

html[data-theme="light"] .persona-card-modern .persona-header {
    color: #1a202c !important;
}

/* Persona footer */
html[data-theme="light"] .persona-footer {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .persona-footer .btn-card-primary,
html[data-theme="light"] .persona-footer .btn-card-share,
html[data-theme="light"] .persona-footer .btn-card-danger,
html[data-theme="light"] .persona-footer .btn-card-secondary {
    color: #4a5568 !important;
}

/* Category badges */
html[data-theme="light"] .category-badge {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .shared-badge {
    background: rgba(184, 146, 46, 0.1) !important;
    color: #b8922e !important;
    border: 1px solid rgba(184, 146, 46, 0.2) !important;
}

/* Strategy groups */
html[data-theme="light"] .strategy-group {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .strategy-group-title {
    color: #1a202c !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .strategy-group-title svg {
    color: #b8922e !important;
}

/* Focus group checkbox */
html[data-theme="light"] .focus-group-checkbox label {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .focus-group-checkbox input:checked + label {
    background: #b8922e !important;
    border-color: #b8922e !important;
}

/* Agent status indicator */
html[data-theme="light"] .agent-status-indicator {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Agent thought bubbles */
html[data-theme="light"] .agent-thought-bubble {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .agent-thought-bubble::after {
    background: #ffffff !important;
}

html[data-theme="light"] .thought-file-link {
    color: #b8922e !important;
}

/* Notification banner */
html[data-theme="light"] .notification-banner {
    background: #ffffff !important;
    border: 1px solid rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .notification-title {
    color: #b8922e !important;
}

html[data-theme="light"] .notification-message {
    color: #4a5568 !important;
}

/* === Dashboard Content === */
html[data-theme="light"] .dashboard-content {
    background: #f5f7fa;
}

/* === Empty State === */
html[data-theme="light"] .empty-state {
    color: #718096;
}

html[data-theme="light"] .empty-state-modern {
    color: #718096 !important;
}

/* === Scrollbar === */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* === Buttons === */
html[data-theme="light"] .btn-primary {
    background: #D4A94A !important;
    color: #ffffff !important;
    border: 1px solid #D4A94A !important;
}

html[data-theme="light"] .btn-primary:hover {
    background: #b8922e !important;
    box-shadow: 0 4px 15px rgba(184, 146, 46, 0.3) !important;
}

html[data-theme="light"] .btn-secondary {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .btn-danger {
    background: #fc8181 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .btn-danger:hover {
    background: #f56565 !important;
}

html[data-theme="light"] .btn-success {
    background: #68d391 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .btn-card-primary {
    background: #D4A94A !important;
    color: #ffffff !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .btn-card-secondary {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .btn-card-share {
    color: #4a5568 !important;
}

html[data-theme="light"] .btn-card-danger {
    color: #fc8181 !important;
}

/* Duplicate avatar ring */
html[data-theme="light"] .btn-duplicate-avatar-ring:hover {
    background: rgba(184, 146, 46, 0.1) !important;
    border-color: rgba(184, 146, 46, 0.4) !important;
}

/* === Modal Overrides === */
html[data-theme="light"] .modal-backdrop.show {
    backdrop-filter: blur(4px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .modal-title {
    color: #b8922e !important;
}

html[data-theme="light"] .modal-body {
    color: #4a5568 !important;
}

html[data-theme="light"] .modal-body label {
    color: #1a202c !important;
}

html[data-theme="light"] .modal-body .text-muted {
    color: #718096 !important;
}

html[data-theme="light"] .modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .modal-body::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}

html[data-theme="light"] .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .btn-close {
    filter: none !important;
    opacity: 0.5 !important;
}

/* Modal inputs - comprehensive override */
html[data-theme="light"] .modal input.form-control,
html[data-theme="light"] .modal textarea.form-control,
html[data-theme="light"] .modal select.form-control,
html[data-theme="light"] .modal select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .modal select option {
    background: #ffffff !important;
    color: #1a202c !important;
}

html[data-theme="light"] .modal input.form-control::placeholder,
html[data-theme="light"] .modal textarea.form-control::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .modal input.form-control:focus,
html[data-theme="light"] .modal textarea.form-control:focus,
html[data-theme="light"] .modal select.form-control:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
    color: #1a202c !important;
    box-shadow: 0 0 0 2px rgba(184, 146, 46, 0.15) !important;
}

/* Persona creation modal */
html[data-theme="light"] .persona-creation-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .persona-creation-modal .form-group input,
html[data-theme="light"] .persona-creation-modal .form-group textarea,
html[data-theme="light"] .persona-creation-modal .form-group select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .persona-creation-modal .form-group input::placeholder,
html[data-theme="light"] .persona-creation-modal .form-group textarea::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .persona-creation-modal .form-group input:focus,
html[data-theme="light"] .persona-creation-modal .form-group textarea:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
    color: #1a202c !important;
}

/* Category option */
html[data-theme="light"] .category-option {
    background: #f8fafc !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .category-option:hover {
    border-color: #b8922e !important;
    background: rgba(184, 146, 46, 0.05) !important;
}

html[data-theme="light"] .category-option.selected,
html[data-theme="light"] .category-option.active {
    border-color: #b8922e !important;
    background: rgba(184, 146, 46, 0.08) !important;
}

/* Step numbers */
html[data-theme="light"] .step-number {
    background: #edf2f7 !important;
    color: #718096 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .step-number.active {
    background: #D4A94A !important;
    color: #ffffff !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .step-number.completed {
    background: #68d391 !important;
    color: #ffffff !important;
    border-color: #68d391 !important;
}

/* Persona details modal */
html[data-theme="light"] .persona-details-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .persona-details-modal .modal-header {
    background: linear-gradient(180deg, rgba(184, 146, 46, 0.06) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .persona-details-modal .card-content p,
html[data-theme="light"] .persona-details-modal .card-content span {
    color: #4a5568 !important;
}

html[data-theme="light"] .persona-details-modal .card-header h6 {
    color: #b8922e !important;
}

html[data-theme="light"] .persona-details-modal .usage-block h7 {
    color: #1a202c !important;
}

html[data-theme="light"] .persona-details-modal .usage-block ul,
html[data-theme="light"] .persona-details-modal .usage-block li {
    color: #4a5568 !important;
}

html[data-theme="light"] .persona-details-modal .usage-block strong {
    color: #b8922e !important;
}

/* Profile section */
html[data-theme="light"] .profile-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .profile-name {
    color: #1a202c !important;
}

html[data-theme="light"] .profile-job {
    color: #718096 !important;
}

html[data-theme="light"] .profile-avatar {
    border: 2px solid rgba(184, 146, 46, 0.3) !important;
}

html[data-theme="light"] .default-avatar-modern {
    background: #f8fafc !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .persona-avatar-modern {
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .persona-avatar-modern img {
    filter: brightness(1) !important;
}

/* Card headers */
html[data-theme="light"] .card-header {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #1a202c !important;
    border-bottom: 1px solid rgba(184, 146, 46, 0.12) !important;
}

html[data-theme="light"] .card-header h6 {
    color: #1a202c !important;
}

html[data-theme="light"] .card-header i {
    color: #b8922e !important;
}

/* Info cards */
html[data-theme="light"] .info-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .info-card .card-header {
    color: #b8922e !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .info-card .card-content {
    color: #4a5568 !important;
}

html[data-theme="light"] .info-card .card-content strong {
    color: #b8922e !important;
}

/* Edit button */
html[data-theme="light"] .card-edit-btn {
    border: 1px solid rgba(184, 146, 46, 0.3) !important;
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .card-edit-btn:hover {
    background: #b8922e !important;
    color: #ffffff !important;
}

/* Edit modal */
html[data-theme="light"] .edit-modal-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .edit-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .edit-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .edit-modal-header h3 {
    color: #b8922e !important;
}

html[data-theme="light"] .edit-modal-body label {
    color: #4a5568 !important;
}

html[data-theme="light"] .edit-modal-body input,
html[data-theme="light"] .edit-modal-body textarea,
html[data-theme="light"] .edit-modal-body select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .edit-modal-body input:focus,
html[data-theme="light"] .edit-modal-body textarea:focus,
html[data-theme="light"] .edit-modal-body select:focus {
    border-color: #b8922e !important;
    box-shadow: 0 0 0 1px rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .edit-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .edit-modal-footer .btn-secondary {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .edit-modal-footer .btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .edit-modal-footer .btn-primary {
    background: #D4A94A !important;
    color: #ffffff !important;
    border: 1px solid #D4A94A !important;
}

/* Delete modal */
html[data-theme="light"] #deletePersonaModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="light"] #deletePersonaModal .modal-header {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.04) 0%, transparent 100%) !important;
}

html[data-theme="light"] #deletePersonaModal .modal-title {
    color: #ef4444 !important;
}

html[data-theme="light"] #deletePersonaModal .modal-body p {
    color: #4a5568 !important;
}

html[data-theme="light"] #deletePersonaModal .modal-footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] #deletePersonaModal .btn-close {
    filter: invert(0) !important;
}

/* Duplicate modal */
html[data-theme="light"] #duplicatePersonaModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] #duplicatePersonaModal .modal-body p {
    color: #4a5568 !important;
}

html[data-theme="light"] #duplicatePersonaModal .modal-body strong {
    color: #b8922e !important;
}

html[data-theme="light"] #duplicatePersonaModal .alert-info {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] #duplicatePersonaModal input.form-control {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] #duplicatePersonaModal input.form-control::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] #duplicatePersonaModal input.form-control:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
}

/* Share / Teamwork modal */
html[data-theme="light"] #sharePersonaModal .modal-content,
html[data-theme="light"] #teamworkShareModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Template modal */
html[data-theme="light"] #templateModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] #templateModal .modal-body {
    color: #4a5568 !important;
}

/* Tags */
html[data-theme="light"] .tags-container .tag,
html[data-theme="light"] .tag {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
    border: 1px solid rgba(184, 146, 46, 0.2) !important;
}

/* System prompt */
html[data-theme="light"] .system-prompt-display,
html[data-theme="light"] .system-prompt-readonly {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .custom-instructions-edit {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .custom-instructions-edit:focus {
    border-color: #b8922e !important;
    box-shadow: 0 0 0 1px rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .instructions-label {
    color: #4a5568 !important;
}

/* Generate avatar / upload overlay */
html[data-theme="light"] .generate-avatar-btn-overlay {
    background: rgba(184, 146, 46, 0.1) !important;
    border: 1px solid rgba(184, 146, 46, 0.3) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .generate-avatar-btn-overlay:hover {
    background: #b8922e !important;
    color: #ffffff !important;
}

html[data-theme="light"] .upload-avatar-overlay {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #b8922e !important;
    border: 1px solid rgba(184, 146, 46, 0.3) !important;
}

/* Form controls modern */
html[data-theme="light"] .form-control-modern {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .form-control-modern:focus {
    border-color: #b8922e !important;
    box-shadow: 0 0 0 2px rgba(184, 146, 46, 0.15) !important;
}

html[data-theme="light"] .form-control-modern::placeholder {
    color: #a0aec0 !important;
}

/* Flash messages */
html[data-theme="light"] .flash-message {
    border-radius: 8px;
}

/* Agentic sidebar */
html[data-theme="light"] .agentic-sidebar {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .agentic-message {
    color: #4a5568 !important;
}

/* Agentic metric cards */
html[data-theme="light"] #agentic-dashboard-content .agentic-metric-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] #agentic-dashboard-content .metric-label {
    color: #718096 !important;
}

html[data-theme="light"] #agentic-dashboard-content .metric-value {
    color: #1a202c !important;
}

html[data-theme="light"] #agentic-dashboard-content h6,
html[data-theme="light"] #agentic-dashboard-content .agentic-section h6 {
    color: #b8922e !important;
}

/* Agentic execution status */
html[data-theme="light"] .agentic-execution-status {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-status-header h4 {
    color: #1a202c !important;
}

html[data-theme="light"] .agentic-badge-active {
    background: rgba(184, 146, 46, 0.1) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .agentic-progress-bar-track {
    background: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-step-row.pending {
    background: #f8fafc !important;
    color: #a0aec0 !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-timer {
    color: #718096 !important;
}

/* Badge overrides */
html[data-theme="light"] .badge[style*="linear-gradient"] {
    background: linear-gradient(135deg, #D4A94A 0%, #e8c56d 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .badge-count {
    color: #1a202c !important;
}

/* Dashboard scrollbar */
html[data-theme="light"] .dashboard-content ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html[data-theme="light"] .dashboard-content ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .dashboard-content ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Persona details modal scrollbar */
html[data-theme="light"] .persona-details-modal ::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}

html[data-theme="light"] .persona-details-modal ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
}

/* Toggle switch */
html[data-theme="light"] .toggle-switch .toggle-slider {
    background: #cbd5e0 !important;
}

html[data-theme="light"] .toggle-switch input:checked + .toggle-slider {
    background: #D4A94A !important;
}

/* === Chat Page Overrides === */
html[data-theme="light"] .chat-page-wrapper {
    background: #f5f7fa !important;
    color: #1a202c !important;
}

/* Chat hero header */
html[data-theme="light"] .chat-hero-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .chat-persona-details h1 {
    color: #1a202c !important;
}

html[data-theme="light"] .chat-persona-details p {
    color: #718096 !important;
}

html[data-theme="light"] .chat-persona-avatar {
    border-color: rgba(184, 146, 46, 0.2) !important;
    background: #f8fafc !important;
    color: #b8922e !important;
}

/* Chat header buttons */
html[data-theme="light"] .btn-chat-header {
    background: #f8fafc !important;
    color: #718096 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .btn-chat-header:hover {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .btn-back {
    color: #b8922e !important;
    background: rgba(184, 146, 46, 0.06) !important;
}

html[data-theme="light"] .btn-clear {
    background: #f8fafc !important;
    color: #718096 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Context dropdown */
html[data-theme="light"] .context-dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .context-dropdown-item {
    color: #4a5568 !important;
}

html[data-theme="light"] .context-dropdown-item:hover {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #b8922e !important;
}

/* Conversations sidebar */
html[data-theme="light"] .conversations-sidebar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .btn-new-conversation {
    background: transparent !important;
    color: #718096 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .btn-new-conversation:hover {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #b8922e !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .conversations-search {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .conversations-search:focus-within {
    border-color: rgba(184, 146, 46, 0.4) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .conversations-search input {
    color: #1a202c !important;
}

html[data-theme="light"] .conversations-search input::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .conversations-search svg {
    color: #a0aec0 !important;
}

html[data-theme="light"] .conversation-item {
    color: #4a5568 !important;
}

html[data-theme="light"] .conversation-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .conversation-item.active {
    background: rgba(184, 146, 46, 0.08) !important;
}

html[data-theme="light"] .conversation-item-title {
    color: #1a202c !important;
}

html[data-theme="light"] .conversation-item-meta {
    color: #a0aec0 !important;
}

html[data-theme="light"] .conversation-item-delete {
    color: #a0aec0 !important;
}

html[data-theme="light"] .conversation-item-delete:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

html[data-theme="light"] .no-conversations {
    color: #a0aec0 !important;
}

/* Chat messages */
html[data-theme="light"] .chat-messages-wrapper {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .chat-messages {
    background: transparent !important;
}

html[data-theme="light"] .chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}

html[data-theme="light"] .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .user-message .message-content {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .ai-message .message-content {
    background: #ffffff !important;
    color: #1a202c !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .error-message .message-content {
    background: rgba(239, 68, 68, 0.06) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="light"] .message-time {
    color: #a0aec0 !important;
}

/* Chat input */
html[data-theme="light"] .chat-input-container {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .chat-input-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .chat-input-wrapper:focus-within {
    border-color: #b8922e !important;
    box-shadow: 0 0 0 2px rgba(184, 146, 46, 0.1) !important;
}

html[data-theme="light"] .chat-input-wrapper textarea {
    color: #1a202c !important;
}

html[data-theme="light"] .chat-input-wrapper textarea::placeholder {
    color: #a0aec0 !important;
}

/* Chat action buttons */
html[data-theme="light"] .chat-action-btn {
    color: #718096 !important;
}

html[data-theme="light"] .chat-action-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .chat-action-btn.active {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #b8922e !important;
}

/* Send button */
html[data-theme="light"] .send-button {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(184, 146, 46, 0.25) !important;
}

html[data-theme="light"] .send-button:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(212, 169, 74, 0.35) !important;
}

html[data-theme="light"] .send-button:disabled {
    background: #edf2f7 !important;
    color: #a0aec0 !important;
    box-shadow: none !important;
}

/* Agentic button */
html[data-theme="light"] .btn-agentic {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .btn-agentic:hover {
    background: linear-gradient(135deg, #b8922e 0%, #8a6d22 100%) !important;
}

/* Agentic execution status */
html[data-theme="light"] .agentic-execution-status::before {
    background: linear-gradient(90deg, #D4A94A, #b8922e, #e8c56d, #D4A94A) !important;
}

html[data-theme="light"] .agentic-icon-active {
    background: linear-gradient(135deg, #D4A94A, #b8922e) !important;
}

html[data-theme="light"] .agentic-step-row.active {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(212, 169, 74, 0.2) !important;
}

html[data-theme="light"] .agentic-step-row.completed {
    background: rgba(72, 187, 120, 0.06) !important;
    border-color: rgba(72, 187, 120, 0.15) !important;
}

html[data-theme="light"] .agentic-step-action {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #D4A94A !important;
}

/* Agentic review panel */
html[data-theme="light"] .agentic-review-panel {
    background: rgba(184, 146, 46, 0.04) !important;
    border-color: rgba(184, 146, 46, 0.15) !important;
}

html[data-theme="light"] .agentic-review-panel h4 {
    color: #1a202c !important;
}

html[data-theme="light"] .review-summary {
    background: #f8fafc !important;
    color: #4a5568 !important;
}

/* Agentic modal */
html[data-theme="light"] .agentic-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .agentic-modal .modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-modal .modal-title {
    color: #1a202c !important;
}

html[data-theme="light"] .agentic-modal .modal-body {
    background: #ffffff !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .agentic-modal .modal-body h6,
html[data-theme="light"] .agentic-modal .modal-body label {
    color: #1a202c !important;
}

html[data-theme="light"] .agentic-modal .modal-body p {
    color: #718096 !important;
}

html[data-theme="light"] .agentic-plan-input {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .agentic-plan-input::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .agentic-plan-input:focus {
    border-color: #D4A94A !important;
}

html[data-theme="light"] .agentic-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #f8fafc !important;
}

html[data-theme="light"] .agentic-modal .form-select,
html[data-theme="light"] .agentic-modal select {
    background-color: #ffffff !important;
    color: #1a202c !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .agentic-modal .form-select option,
html[data-theme="light"] .agentic-modal select option {
    background: #ffffff !important;
    color: #1a202c !important;
}

/* Context limit warning */
html[data-theme="light"] .context-limit-warning {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(184, 146, 46, 0.15) !important;
}

html[data-theme="light"] .context-limit-warning svg {
    color: #b8922e !important;
}

html[data-theme="light"] .context-limit-warning-text strong {
    color: #1a202c !important;
}

html[data-theme="light"] .context-limit-warning-text span {
    color: #718096 !important;
}

/* Files panel */
html[data-theme="light"] .files-panel-modern {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .files-panel-header {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
}

html[data-theme="light"] .files-panel-header h3 {
    color: #ffffff !important;
}

html[data-theme="light"] .btn-close-panel {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .btn-close-panel:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="light"] .file-item {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .file-item:hover {
    background: rgba(184, 146, 46, 0.04) !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .file-name {
    color: #1a202c !important;
}

html[data-theme="light"] .file-meta {
    color: #718096 !important;
}

html[data-theme="light"] .drop-zone {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: #f8fafc !important;
}

html[data-theme="light"] .drop-zone:hover {
    border-color: #D4A94A !important;
    background: rgba(184, 146, 46, 0.04) !important;
}

html[data-theme="light"] .drop-zone-content p {
    color: #1a202c !important;
}

html[data-theme="light"] .drop-zone-hint {
    color: #a0aec0 !important;
}

/* Markdown / formatted content */
html[data-theme="light"] .markdown-table-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .markdown-table th {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .markdown-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .markdown-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}

html[data-theme="light"] .markdown-table tbody tr:hover {
    background-color: rgba(184, 146, 46, 0.06) !important;
}

html[data-theme="light"] .markdown-table td strong {
    color: #1a202c !important;
}

html[data-theme="light"] .markdown-table td em {
    color: #b8922e !important;
}

html[data-theme="light"] .formatted-content pre {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .formatted-content code {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .formatted-content pre code {
    background: transparent !important;
    color: #e2e8f0 !important;
}

html[data-theme="light"] .formatted-content strong,
html[data-theme="light"] .formatted-content b {
    color: #1a202c !important;
}

html[data-theme="light"] .formatted-content h1,
html[data-theme="light"] .formatted-content h2,
html[data-theme="light"] .formatted-content h3,
html[data-theme="light"] .formatted-content h4,
html[data-theme="light"] .formatted-content h5,
html[data-theme="light"] .formatted-content h6 {
    color: #1a202c !important;
}

html[data-theme="light"] .formatted-content blockquote {
    border-left-color: #D4A94A !important;
    color: #718096 !important;
}

html[data-theme="light"] .formatted-content hr {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .formatted-content a {
    color: #D4A94A !important;
}

html[data-theme="light"] .code-copy-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #718096 !important;
}

html[data-theme="light"] .code-copy-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

/* Chat toast */
html[data-theme="light"] .chat-toast {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

/* Suggested prompts */
html[data-theme="light"] .suggested-prompt-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .suggested-prompt-btn:hover {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
    color: #b8922e !important;
}

/* Chat loading */
html[data-theme="light"] .chat-loading {
    color: #718096 !important;
}

html[data-theme="light"] .typing-dot {
    background: #a0aec0 !important;
}

/* Message actions */
html[data-theme="light"] .message-action-btn {
    color: #a0aec0 !important;
}

html[data-theme="light"] .message-action-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #4a5568 !important;
}

/* Persona switcher modal */
html[data-theme="light"] .persona-switcher-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .persona-switcher-item {
    background: #f8fafc !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .persona-switcher-item:hover {
    background: rgba(184, 146, 46, 0.06) !important;
}

html[data-theme="light"] .persona-switcher-item.active {
    background: rgba(184, 146, 46, 0.06) !important;
    border-color: rgba(212, 169, 74, 0.2) !important;
}

/* Links panel */
html[data-theme="light"] .links-panel-modern {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .link-item {
    color: #4a5568 !important;
}

html[data-theme="light"] .link-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* === Admin Page Overrides === */
html[data-theme="light"] .admin-container {
    background: #f5f7fa !important;
}

html[data-theme="light"] .admin-sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .admin-sidebar .nav-item {
    color: #4a5568 !important;
}

html[data-theme="light"] .admin-sidebar .nav-item:hover,
html[data-theme="light"] .admin-sidebar .nav-item.active {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #b8922e !important;
}

/* Admin header */
html[data-theme="light"] .admin-header h1 {
    color: #1a202c !important;
}

html[data-theme="light"] .admin-header p {
    color: #718096 !important;
}

/* Admin stat cards */
html[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .stat-card .stat-value {
    color: #1a202c !important;
}

html[data-theme="light"] .stat-card .stat-icon {
    color: #D4A94A !important;
}

/* Admin tables */
html[data-theme="light"] .admin-table {
    background: #ffffff !important;
}

html[data-theme="light"] .admin-table th {
    background: #f8fafc !important;
    color: #1a202c !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .admin-table td {
    color: #4a5568 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .admin-table tr:hover td {
    background: #f8fafc !important;
}

/* Admin search & filter */
html[data-theme="light"] .search-filter-bar input,
html[data-theme="light"] .search-filter-bar select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .search-filter-bar input:focus {
    border-color: #D4A94A !important;
}

html[data-theme="light"] .search-filter-bar input::placeholder {
    color: #a0aec0 !important;
}

/* Admin badges */
html[data-theme="light"] .rank-badge {
    background: rgba(212, 169, 74, 0.1) !important;
    color: #D4A94A !important;
}

html[data-theme="light"] .status-badge.active {
    background: rgba(72, 187, 120, 0.1) !important;
    color: #2d9a5e !important;
}

html[data-theme="light"] .status-badge.pending {
    background: rgba(237, 152, 32, 0.1) !important;
    color: #d69e2e !important;
}

/* Admin action buttons */
html[data-theme="light"] .action-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .action-btn:hover {
    background: rgba(184, 146, 46, 0.06) !important;
    color: #D4A94A !important;
}

/* Admin toggle switch */
html[data-theme="light"] .toggle-slider {
    background: #cbd5e0 !important;
}

html[data-theme="light"] .toggle-switch input:checked + .toggle-slider {
    background: #D4A94A !important;
}

/* === General Form Overrides === */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="url"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
    color: #1a202c !important;
}

/* === Navbar general === */
html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .nav-brand span {
    color: #D4A94A !important;
}

/* === Footer Light Override === */
html[data-theme="light"] .footer {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #718096 !important;
}

html[data-theme="light"] .footer p,
html[data-theme="light"] .footer span,
html[data-theme="light"] .footer li {
    color: #4a5568 !important;
}

html[data-theme="light"] .footer h6 {
    color: #1a202c !important;
}

html[data-theme="light"] .footer a {
    color: #b8922e !important;
}

html[data-theme="light"] .footer .footer-link-hover:hover {
    color: #9a7a20 !important;
}

html[data-theme="light"] .footer .footer-nav-link:hover {
    color: #b8922e !important;
}

html[data-theme="light"] footer.footer {
    background-color: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    color: #718096 !important;
}

html[data-theme="light"] footer.footer p,
html[data-theme="light"] footer.footer span,
html[data-theme="light"] footer.footer li,
html[data-theme="light"] footer.footer a {
    color: #4a5568 !important;
}

html[data-theme="light"] footer.footer h6 {
    color: #1a202c !important;
}

html[data-theme="light"] footer.footer .custom-modal-container {
    background: #ffffff !important;
    color: #1a202c !important;
}

html[data-theme="light"] footer.footer .custom-modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
}

/* === Custom Modal Override (Footer Modals) === */
html[data-theme="light"] .custom-modal-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .custom-modal-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .custom-modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .custom-modal-header h2 {
    color: #1a202c !important;
}

html[data-theme="light"] .custom-modal-close {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4a5568 !important;
}

html[data-theme="light"] .custom-modal-close:hover {
    background: rgba(184, 146, 46, 0.15) !important;
    color: #b8922e !important;
}

/* Custom modal inner text overrides */
html[data-theme="light"] .custom-modal-container p,
html[data-theme="light"] .custom-modal-container span,
html[data-theme="light"] .custom-modal-container li {
    color: #4a5568 !important;
}

html[data-theme="light"] .custom-modal-container h3,
html[data-theme="light"] .custom-modal-container h4 {
    color: #1a202c !important;
}

html[data-theme="light"] .custom-modal-container strong {
    color: #1a202c !important;
}

/* === Scrollbar in sidebar overrides === */
html[data-theme="light"] .conversations-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

html[data-theme="light"] .conversations-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

html[data-theme="light"] .conversations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* === Knowledge tags modal === */
html[data-theme="light"] #add-knowledge-tag-modal input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] #add-knowledge-tag-modal input::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] #add-knowledge-tag-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] #add-knowledge-tag-modal .modal-content h5,
html[data-theme="light"] #add-knowledge-tag-modal .modal-content label {
    color: #1a202c !important;
}

html[data-theme="light"] #add-knowledge-tag-modal .modal-content .text-muted {
    color: #718096 !important;
}

/* === Duplicate modal === */
html[data-theme="light"] #duplicatePersonaModal input.form-control {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] #duplicatePersonaModal input.form-control::placeholder {
    color: #a0aec0 !important;
}

/* === Managed Agents Modal === */
html[data-theme="light"] #managedAgentsModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] #managedAgentsModal .modal-header {
    background: #f8fafc !important;
}

html[data-theme="light"] #managedAgentsModal .modal-title {
    color: #1a202c !important;
}

html[data-theme="light"] #managedAgentsModal .modal-body {
    background: #ffffff !important;
}

html[data-theme="light"] #managedAgentsModal h6 {
    color: #718096 !important;
}

html[data-theme="light"] #managedAgentsModal .btn-close {
    filter: none !important;
}

/* === Prompt Library Modal === */
html[data-theme="light"] .prompt-library-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .prompt-search {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .prompt-search::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .prompt-search:focus {
    border-color: #D4A94A !important;
}

html[data-theme="light"] .prompt-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .prompt-card:hover {
    border-color: rgba(184, 146, 46, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .prompt-title {
    color: #1a202c !important;
}

html[data-theme="light"] .prompt-description {
    color: #718096 !important;
}

/* === File Disclaimer Modal === */
html[data-theme="light"] .file-disclaimer-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .disclaimer-card {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .disclaimer-text {
    color: #4a5568 !important;
}

html[data-theme="light"] .disclaimer-text strong {
    color: #1a202c !important;
}

/* === Settings Page === */
html[data-theme="light"] .settings-container {
    background: #f5f7fa !important;
}

html[data-theme="light"] .settings-section {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .section-title {
    color: #1a202c !important;
}

html[data-theme="light"] .setting-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .setting-label {
    color: #1a202c !important;
}

html[data-theme="light"] .setting-description {
    color: #718096 !important;
}

/* === Connections Page === */
html[data-theme="light"] .service-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .service-card:hover {
    border-color: rgba(184, 146, 46, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .service-info h4 {
    color: #1a202c !important;
}

html[data-theme="light"] .service-info p {
    color: #718096 !important;
}

html[data-theme="light"] .btn-connect {
    background: linear-gradient(135deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .btn-disconnect {
    background: #f8fafc !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="light"] .service-status.connected {
    color: #2d9a5e !important;
}

html[data-theme="light"] .service-status.not-connected {
    color: #a0aec0 !important;
}

/* === Theme Toggle Button === */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #999999;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.theme-toggle-btn:hover {
    background: rgba(212, 169, 74, 0.1);
    border-color: rgba(212, 169, 74, 0.3);
    color: #D4A94A;
}

.theme-toggle-btn .theme-icon {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}

html[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #718096;
}

html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(184, 146, 46, 0.08);
    border-color: rgba(184, 146, 46, 0.25);
    color: #b8922e;
}

/* === Landing Page Light Overrides === */
html[data-theme="light"] body {
    background-color: #f5f7fa !important;
    color: #1a202c !important;
}

html[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .cap-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .cap-card:hover {
    border-color: #b8922e !important;
    background: rgba(184, 146, 46, 0.03) !important;
}

html[data-theme="light"] .outline-title {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .faq-item {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .faq-item:hover {
    border-color: #b8922e !important;
}

html[data-theme="light"] .faq-answer {
    color: #718096 !important;
}

/* Landing Tailwind overrides */
html[data-theme="light"] .bg-\[\#000000\],
html[data-theme="light"] .bg-\[\#020202\],
html[data-theme="light"] .bg-\[\#030303\],
html[data-theme="light"] .bg-\[\#0a0a0a\],
html[data-theme="light"] .bg-\[\#111111\] {
    background-color: #f5f7fa !important;
}

html[data-theme="light"] .bg-black {
    background-color: #ffffff !important;
}

html[data-theme="light"] .text-white {
    color: #1a202c !important;
}

html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-gray-500,
html[data-theme="light"] .text-gray-600 {
    color: #4a5568 !important;
}

html[data-theme="light"] .text-gray-700,
html[data-theme="light"] .text-gray-800 {
    color: #1a202c !important;
}

html[data-theme="light"] .border-white\/5,
html[data-theme="light"] .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .border-b-white\/5 {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Landing page footer override */
html[data-theme="light"] footer {
    background-color: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Landing page hero section */
html[data-theme="light"] .bg-gradient-to-b {
    background-image: linear-gradient(to bottom, #D4A94A, #b8922e) !important;
}

/* =============================================
   FIXES: Light theme visibility issues
   ============================================= */

/* === Agent Status Indicator (idle text) === */
html[data-theme="light"] .agent-status-indicator {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .agent-status-indicator .status-text {
    color: #1a202c !important;
}

html[data-theme="light"] .agent-status-indicator[style*="color: white"],
html[data-theme="light"] .agent-status-indicator[style*="color:white"] {
    color: #1a202c !important;
}

/* === Category-specific Nav Tab Active Colors === */
html[data-theme="light"] .nav-tab.active[data-tab="client-service"] {
    background: #34d399 !important;
    color: #000 !important;
}

html[data-theme="light"] .nav-tab.active[data-tab="strategy"] {
    background: #e8c56d !important;
    color: #000 !important;
}

html[data-theme="light"] .nav-tab.active[data-tab="data-intelligence"] {
    background: #60a5fa !important;
    color: #000 !important;
}

html[data-theme="light"] .nav-tab.active[data-tab="specialist"] {
    background: #D4A94A !important;
    color: #000 !important;
}

/* === Category-specific Card Styles in Light === */
/* Client Service - Green */
html[data-theme="light"] .persona-card-modern[data-category*="client"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="Client"] .category-badge {
    background: rgba(52, 211, 153, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(52, 211, 153, 0.2) !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="client"] .category-badge svg,
html[data-theme="light"] .persona-card-modern[data-category*="Client"] .category-badge svg {
    color: #059669 !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="client"] .persona-header,
html[data-theme="light"] .persona-card-modern[data-category*="Client"] .persona-header {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15) !important;
}

/* Strategy - Purple */
html[data-theme="light"] .persona-card-modern[data-category*="strategy"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="Strategy"] .category-badge {
    background: rgba(232, 197, 109, 0.1) !important;
    color: #92710c !important;
    border: 1px solid rgba(212, 169, 74, 0.2) !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="strategy"] .category-badge svg,
html[data-theme="light"] .persona-card-modern[data-category*="Strategy"] .category-badge svg {
    color: #92710c !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="strategy"] .persona-header,
html[data-theme="light"] .persona-card-modern[data-category*="Strategy"] .persona-header {
    background: linear-gradient(135deg, rgba(184, 146, 46, 0.06) 0%, rgba(184, 146, 46, 0.03) 100%) !important;
    border-bottom: 1px solid rgba(184, 146, 46, 0.15) !important;
}

/* Data Intelligence - Blue */
html[data-theme="light"] .persona-card-modern[data-category*="data"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="Data"] .category-badge {
    background: rgba(96, 165, 250, 0.1) !important;
    color: #b8922e !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="data"] .category-badge svg,
html[data-theme="light"] .persona-card-modern[data-category*="Data"] .category-badge svg {
    color: #b8922e !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="data"] .persona-header,
html[data-theme="light"] .persona-card-modern[data-category*="Data"] .persona-header {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15) !important;
}

/* Specialist - Gold */
html[data-theme="light"] .persona-card-modern[data-category*="specialist"] .category-badge,
html[data-theme="light"] .persona-card-modern[data-category*="Specialist"] .category-badge {
    background: rgba(212, 169, 74, 0.1) !important;
    color: #92710c !important;
    border: 1px solid rgba(212, 169, 74, 0.2) !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="specialist"] .category-badge svg,
html[data-theme="light"] .persona-card-modern[data-category*="Specialist"] .category-badge svg {
    color: #92710c !important;
}

html[data-theme="light"] .persona-card-modern[data-category*="specialist"] .persona-header,
html[data-theme="light"] .persona-card-modern[data-category*="Specialist"] .persona-header {
    background: linear-gradient(135deg, rgba(212, 169, 74, 0.06) 0%, rgba(212, 169, 74, 0.03) 100%) !important;
    border-bottom: 1px solid rgba(212, 169, 74, 0.15) !important;
}

/* === Share Button - needs visible background in light === */
html[data-theme="light"] .btn-card-share {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .btn-card-share svg {
    stroke: #4a5568 !important;
}

html[data-theme="light"] .btn-card-share:hover {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
    border-color: rgba(184, 146, 46, 0.2) !important;
}

html[data-theme="light"] .btn-card-share:hover svg {
    stroke: #b8922e !important;
}

/* Other card buttons in light */
html[data-theme="light"] .btn-card-primary {
    background: #D4A94A !important;
    color: #ffffff !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .btn-card-danger {
    color: #ef4444 !important;
}

html[data-theme="light"] .btn-card-danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
}

/* === Footer Logo - make it black in light theme === */
html[data-theme="light"] .footer img[src*="ailionslogo"] {
    filter: brightness(0) !important;
}

/* === Create Agent Modal - Light Overrides === */
html[data-theme="light"] .persona-creation-modal {
    background: #ffffff !important;
    color: #1a202c !important;
}

html[data-theme="light"] .persona-creation-modal h1,
html[data-theme="light"] .persona-creation-modal h2,
html[data-theme="light"] .persona-creation-modal h3 {
    color: #1a202c !important;
}

html[data-theme="light"] .persona-creation-modal .modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .modal-footer-custom {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Step indicators in agent creation */
html[data-theme="light"] .step-indicator {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .step-number {
    background: #edf2f7 !important;
    color: #718096 !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .step-number.active {
    background: rgba(184, 146, 46, 0.1) !important;
    color: #b8922e !important;
    border-color: #b8922e !important;
}

html[data-theme="light"] .step-number.completed {
    background: rgba(72, 187, 120, 0.1) !important;
    color: #2d9a5e !important;
    border-color: #2d9a5e !important;
}

/* Progress bar */
html[data-theme="light"] .progress-bar,
html[data-theme="light"] .progress-fill {
    background: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .progress-fill {
    background: linear-gradient(90deg, #D4A94A, #e8c56d) !important;
}

/* Challenge options in agent creation */
html[data-theme="light"] .challenge-option {
    background: #f8fafc !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .challenge-option:hover {
    background: rgba(184, 146, 46, 0.04) !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .challenge-option.selected,
html[data-theme="light"] .challenge-option input:checked + span {
    background: rgba(184, 146, 46, 0.08) !important;
    border-color: rgba(184, 146, 46, 0.3) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .challenge-option input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .challenge-option input[type="checkbox"]:hover {
    border-color: #D4A94A !important;
}

html[data-theme="light"] .challenge-option input[type="checkbox"]:checked {
    background: #D4A94A !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .challenge-option input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    display: block !important;
}

/* Also fix tool-option and social-option checkboxes */
html[data-theme="light"] .tool-option input[type="checkbox"],
html[data-theme="light"] .social-option input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #cbd5e0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .tool-option input[type="checkbox"]:checked,
html[data-theme="light"] .social-option input[type="checkbox"]:checked {
    background: #D4A94A !important;
    border-color: #D4A94A !important;
}

html[data-theme="light"] .tool-option input[type="checkbox"]:checked::after,
html[data-theme="light"] .social-option input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    display: block !important;
}

/* Agent creation modal - category option */
html[data-theme="light"] .category-option {
    background: #f8fafc !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .category-option:hover {
    border-color: #b8922e !important;
    background: rgba(184, 146, 46, 0.05) !important;
}

html[data-theme="light"] .category-option.selected,
html[data-theme="light"] .category-option.active {
    border-color: #b8922e !important;
    background: rgba(184, 146, 46, 0.08) !important;
    color: #1a202c !important;
}

/* Agent creation form fields */
html[data-theme="light"] .persona-creation-modal label {
    color: #4a5568 !important;
}

html[data-theme="light"] .persona-creation-modal input,
html[data-theme="light"] .persona-creation-modal textarea,
html[data-theme="light"] .persona-creation-modal select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .persona-creation-modal input::placeholder,
html[data-theme="light"] .persona-creation-modal textarea::placeholder {
    color: #a0aec0 !important;
}

html[data-theme="light"] .persona-creation-modal input:focus,
html[data-theme="light"] .persona-creation-modal textarea:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
    color: #1a202c !important;
}

/* Create Agent Modal inner content background override */
html[data-theme="light"] #createAgentModal .modal-content {
    background: #ffffff !important;
}

html[data-theme="light"] #createAgentModal .modal-body {
    background: #ffffff !important;
    color: #4a5568 !important;
}

/* Knowledge tag badge */
html[data-theme="light"] .knowledge-tag-badge {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
    border: 1px solid rgba(212, 169, 74, 0.2) !important;
}

/* Tags in persona cards */
html[data-theme="light"] .persona-card-modern .tag-primary {
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
    border: 1px solid rgba(184, 146, 46, 0.15) !important;
}

html[data-theme="light"] .persona-card-modern .tag-secondary {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Card edit button */
html[data-theme="light"] .card-edit-btn {
    border: 1px solid rgba(184, 146, 46, 0.3) !important;
    background: rgba(184, 146, 46, 0.08) !important;
    color: #b8922e !important;
}

html[data-theme="light"] .card-edit-btn:hover {
    background: #b8922e !important;
    color: #ffffff !important;
    border-color: #b8922e !important;
}

html[data-theme="light"] .card-edit-btn svg {
    color: #b8922e !important;
}

html[data-theme="light"] .card-edit-btn:hover svg {
    color: #ffffff !important;
}

/* Duplicate avatar ring */
html[data-theme="light"] .btn-duplicate-avatar-ring {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="light"] .btn-duplicate-avatar-ring svg {
    stroke: #b8922e !important;
}

html[data-theme="light"] .persona-avatar-wrapper:hover .btn-duplicate-avatar-ring,
html[data-theme="light"] .persona-avatar-modern:hover .btn-duplicate-avatar-ring {
    background: rgba(184, 146, 46, 0.1) !important;
    border-color: rgba(184, 146, 46, 0.4) !important;
}

/* Default avatar text */
html[data-theme="light"] .default-avatar-modern {
    background: #f0f4ff !important;
    color: #D4A94A !important;
}

/* Persona footer buttons */
html[data-theme="light"] .persona-footer .btn-card-primary {
    background: #D4A94A !important;
    color: #ffffff !important;
}

html[data-theme="light"] .persona-footer .btn-card-secondary {
    background: #f8fafc !important;
    color: #4a5568 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .persona-footer .btn-card-secondary:hover {
    background: #edf2f7 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Agentic metric cards */
html[data-theme="light"] .agentic-metric-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-metric-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .agentic-metric-card .metric-label {
    color: #718096 !important;
}

html[data-theme="light"] .agentic-metric-card .metric-value {
    color: #1a202c !important;
}

/* Agentic goals */
html[data-theme="light"] .agentic-goal-item {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-goal-title {
    color: #1a202c !important;
}

html[data-theme="light"] .agentic-goal-meta {
    color: #718096 !important;
}

/* Agentic insights */
html[data-theme="light"] .agentic-insight-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .agentic-insight-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .insight-card-body p {
    color: #4a5568 !important;
}

/* Form group labels in modals */
html[data-theme="light"] .form-group label {
    color: #4a5568 !important;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .form-group select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1a202c !important;
}

html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group textarea:focus {
    border-color: #b8922e !important;
    background: #ffffff !important;
    color: #1a202c !important;
}

/* Focus group checkbox */
html[data-theme="light"] .focus-group-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .focus-group-name {
    color: #1a202c !important;
}

/* Badge count */
html[data-theme="light"] .badge-count {
    background: #D4A94A !important;
    color: #ffffff !important;
}

/* Stat icons and numbers */
html[data-theme="light"] .stat-icon {
    color: #D4A94A !important;
}

html[data-theme="light"] .stat-icon svg {
    color: #D4A94A !important;
}

html[data-theme="light"] .stat-number {
    color: #1a202c !important;
}

/* Stat card (dashboard glass version) */
html[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .stat-card::before {
    background: linear-gradient(135deg, rgba(184, 146, 46, 0.08) 0%, rgba(184, 146, 46, 0.04) 100%) !important;
}

html[data-theme="light"] .stat-card:hover::before {
    background: linear-gradient(135deg, rgba(184, 146, 46, 0.12) 0%, rgba(184, 146, 46, 0.06) 100%) !important;
}

/* Nav header title */
html[data-theme="light"] .nav-header-title {
    color: #b8922e !important;
}

/* Control center text */
html[data-theme="light"] .control-center {
    color: #4a5568 !important;
}

/* Announcement bar */
html[data-theme="light"] .global-announcement-bar {
    background: linear-gradient(90deg, #D4A94A 0%, #b8922e 100%) !important;
    color: #ffffff !important;
}

/* User plan card */
html[data-theme="light"] .user-plan-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .plan-usage-item {
    color: #4a5568 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* Range input */
html[data-theme="light"] input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
    background: #D4A94A !important;
}

/* Shared persona badge */
html[data-theme="light"] .shared-persona .shared-badge {
    background: rgba(184, 146, 46, 0.1) !important;
    color: #b8922e !important;
    border: 1px solid rgba(184, 146, 46, 0.2) !important;
}

/* Empty state modern */
html[data-theme="light"] .empty-state-modern {
    color: #718096 !important;
}

html[data-theme="light"] .empty-state-modern h3,
html[data-theme="light"] .empty-state-modern p {
    color: #718096 !important;
}

/* ==================== Workspace Modal (light theme) ==================== */
html[data-theme="light"] #workspaceModal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] #workspaceModal .modal-header {
    background: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] #workspaceModal .modal-title {
    color: #b8922e !important;
}
html[data-theme="light"] #workspaceModal .ws-modal-hint {
    color: #718096 !important;
}
html[data-theme="light"] #workspaceModal .ws-loading-msg {
    color: #a0aec0 !important;
}
html[data-theme="light"] #workspaceModal #workspaceModalBreadcrumb {
    background: rgba(184, 146, 46, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4a5568 !important;
}
html[data-theme="light"] #workspaceModal #workspaceModalFilesList {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.02) !important;
}
html[data-theme="light"] #workspaceModal .btn-close-white {
    filter: none !important;
    opacity: 0.5 !important;
    color: #333 !important;
}
html[data-theme="light"] #workspaceModal .btn-close {
    color: #333 !important;
    opacity: 0.5 !important;
}
html[data-theme="light"] #workspaceModal .ws-folder-row,
html[data-theme="light"] #workspaceModal .ws-file-row {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
html[data-theme="light"] #workspaceModal .ws-folder-row:hover {
    background: rgba(184, 146, 46, 0.08) !important;
}
html[data-theme="light"] #workspaceModal .ws-file-row:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}
html[data-theme="light"] #workspaceModal .ws-folder-name {
    color: #92700a !important;
}
html[data-theme="light"] #workspaceModal .ws-mtime {
    color: #a0aec0 !important;
}
html[data-theme="light"] #workspaceModal .ws-count {
    color: #718096 !important;
}
html[data-theme="light"] #workspaceModal .ws-file-name {
    color: #1a202c !important;
}
html[data-theme="light"] #workspaceModal .ws-file-meta {
    color: #a0aec0 !important;
}
html[data-theme="light"] #workspaceModal .ws-file-icon {
    color: #a0aec0 !important;
}
html[data-theme="light"] #workspaceModal .ws-download-link {
    color: #b8922e !important;
}
html[data-theme="light"] #workspaceModal .ws-bc-link {
    color: #b8922e !important;
}
html[data-theme="light"] #workspaceModal .ws-bc-sep {
    color: #a0aec0 !important;
}
html[data-theme="light"] #workspaceModal .ws-bc-current {
    color: #1a202c !important;
}
html[data-theme="light"] #workspaceModal .ws-empty-msg {
    color: #a0aec0 !important;
}