/* Light Theme - Professional SaaS Design */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --border: #e5e5e5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Sidebar Light */
[data-theme="light"] .sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
}

[data-theme="light"] .sidebar .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar .nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar .nav-link.active {
    background: var(--accent);
    color: white;
}

/* Sidebar Toggle Light */
[data-theme="light"] .sidebar-toggle-inside {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar-toggle-inside:hover {
    background: var(--accent);
    color: white;
}

[data-theme="light"] .sidebar-toggle-show {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-toggle-show:hover {
    background: var(--accent);
    color: white;
}

/* Navbar Light */
[data-theme="light"] .navbar {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar-brand a {
    color: var(--text-primary);
}

/* Cards Light */
[data-theme="light"] .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="light"] .card:hover {
    border-color: var(--accent);
}

[data-theme="light"] .card-header {
    border-bottom: 1px solid var(--border);
}

/* Dashboard Cards Light */
[data-theme="light"] .dashboard-card {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .dashboard-card:hover {
    border-color: var(--accent);
}

/* Tables Light */
[data-theme="light"] .table {
    color: var(--text-primary);
}

[data-theme="light"] .table thead th {
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

[data-theme="light"] .table tbody tr {
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Forms Light */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Alerts Light */
[data-theme="light"] .alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

[data-theme="light"] .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

[data-theme="light"] .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* Lucide SVG icons default sizing (light theme) */
svg[data-lucide] {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Achievement Cards Light */
[data-theme="light"] .achievement-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-color: var(--border);
}

[data-theme="light"] .achievement-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .achievement-card .achievement-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

/* Achievement Panel Light */
[data-theme="light"] .achievement-panel {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .achievement-panel-header {
    border-color: var(--border);
}

[data-theme="light"] .achievement-panel-close {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .achievement-item {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

[data-theme="light"] .achievement-item:hover {
    border-color: var(--accent);
}

[data-theme="light"] .achievement-item-icon {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .achievement-progress {
    background: var(--bg-secondary);
}

[data-theme="light"] .achievement-panel-show {
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

/* KPI Cards Light */
[data-theme="light"] .kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-color: var(--border);
}

[data-theme="light"] .kpi-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kpi-card .kpi-value {
    background: linear-gradient(135deg, #0a0a0a 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Funnel Box Light */
[data-theme="light"] .funnel-box {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-color: var(--border);
}

[data-theme="light"] .funnel-box::after {
    border-top-color: var(--border);
}

/* Card Gradients Light */
[data-theme="light"] .card-gradient-purple {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .card-gradient-blue {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .card-gradient-green {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.03) 100%);
    border-color: rgba(16, 185, 129, 0.15);
}

/* Scrollbar Light */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--border);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Text colors Light */
[data-theme="light"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .money {
    color: var(--success) !important;
    font-weight: 700;
}

/* Progress bars Light */
[data-theme="light"] .progress {
    background: var(--bg-tertiary);
}

/* Theme Switcher Light */
[data-theme="light"] .theme-switcher {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .theme-switcher button {
    color: var(--text-secondary);
}

[data-theme="light"] .theme-switcher button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .theme-switcher button.active {
    background: var(--accent);
    color: white;
}

[data-theme="light"] .mobile-sidebar-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .sidebar-backdrop {
    background: rgba(15, 23, 42, 0.28);
}

[data-theme="light"] .mobile-card-table tr {
    background: var(--bg-secondary);
    border-color: var(--border);
}
