/**
 * ACL GESTION - Authenticated UI Polish
 * Design epure, professionnel - Palette landing page (#1E3A5F / #2563EB)
 */

/* =========================================
   GLOBAL
   ========================================= */
html { scroll-behavior: smooth; }

#app { background: #F8FAFC; }

*:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
    background: linear-gradient(180deg, #1E3A5F 0%, #162D4A 100%);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08);
    border-right: none;
}

.sidebar-header { padding: 20px 16px 16px; }

.sidebar-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.sidebar-logo .logo {
    width: 36px;
    height: 36px;
    background: #2563EB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
    color: white;
    letter-spacing: 0;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.nav-section-title {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 12px 16px 4px;
}

.nav-item {
    border-radius: 8px;
    font-size: 13.5px;
    padding: 9px 14px;
    margin: 0 8px 1px;
    transition: all 0.15s ease;
    color: rgba(255,255,255,0.7);
}

.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #2563EB;
}

.nav-item i { width: 20px; font-size: 14px; opacity: 0.6; }
.nav-item.active i { opacity: 1; color: #93C5FD; }

.nav-item .badge {
    background: #EF4444;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px;
    min-width: 18px; text-align: center;
    border-radius: 10px;
}

.sidebar-footer {
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.user-card { border-radius: 8px; padding: 10px 12px; }

.user-avatar {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(37, 99, 235, 0.25);
    font-size: 13px;
}

.btn-logout {
    border-radius: 8px; font-size: 13px; padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    padding: 0 24px;
    gap: 12px;
}

.page-title, #page-title {
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.01em;
    color: #1E3A5F;
}

.header-btn {
    width: 36px; height: 36px; border-radius: 8px;
    color: #9CA3AF;
    transition: all 0.15s ease;
}

.header-btn:hover { background: #F3F4F6; color: #1E3A5F; }

.header-btn .notification-count {
    min-width: 16px; height: 16px; font-size: 10px; font-weight: 700;
    top: 2px; right: 2px;
}

.header-quick-settings {
    display: flex; align-items: center; gap: 4px;
    margin-left: 8px; padding-left: 8px;
    border-left: 1px solid #E5E7EB;
}

/* =========================================
   PAGE CONTENT
   ========================================= */
.page-content { padding: 24px; background: #F8FAFC; }

.page-header { margin-bottom: 24px; }

.page-header h2 {
    font-size: 21px; font-weight: 700;
    letter-spacing: -0.02em;
    color: #1E3A5F;
}

.page-header h2 i { color: #2563EB; font-size: 19px; }

.page-header p { color: #6B7280; font-size: 14px; margin-top: 2px; }

/* =========================================
   CARDS
   ========================================= */
.card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.15s ease;
}

.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #F3F4F6;
    background: #fff;
}

.card-header h3, .card-header .card-title {
    font-size: 15px; font-weight: 700;
    color: #1E3A5F;
    letter-spacing: -0.01em;
}

.card-body { padding: 20px; }

/* =========================================
   TABLES
   ========================================= */
.table { border-collapse: separate; border-spacing: 0; }

.table thead th {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #6B7280;
    background: #F8FAFC;
    padding: 10px 14px;
    white-space: nowrap;
    border-bottom: 1px solid #E5E7EB;
}

.table tbody td {
    padding: 11px 14px;
    font-size: 13.5px;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #F8FAFC; }

.table-compact thead th { padding: 8px 10px; font-size: 10px; }
.table-compact tbody td { padding: 8px 10px; font-size: 13px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    font-size: 13.5px; font-weight: 600;
    border-radius: 8px; padding: 8px 16px;
    transition: all 0.15s ease;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; border: none;
    min-height: 36px;
    letter-spacing: 0;
}

.btn-primary {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: #1D4ED8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-sm {
    font-size: 12.5px; padding: 5px 12px;
    min-height: 30px; border-radius: 6px;
}

.btn-outline {
    background: #fff;
    border: 1.5px solid #E5E7EB;
    color: #374151;
}

.btn-outline:hover { border-color: #D1D5DB; background: #F9FAFB; }

.btn-success {
    background: #059669; color: #fff;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}
.btn-success:hover { background: #047857; }

.btn-danger {
    background: #DC2626; color: #fff;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}
.btn-danger:hover { background: #B91C1C; }

.btn-warning {
    background: #D97706; color: #fff;
}
.btn-warning:hover { background: #B45309; }

/* Header actions group */
.header-actions-group {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* =========================================
   FORMS
   ========================================= */
.form-group label, .form-label {
    font-size: 13px; font-weight: 600;
    color: #374151;
    margin-bottom: 5px; display: block;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="url"],
select,
textarea {
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #1F2937;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 38px;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

.form-help, small.form-help {
    font-size: 12px; color: #9CA3AF; margin-top: 4px;
}

/* =========================================
   BADGES
   ========================================= */
.badge {
    font-size: 11.5px; font-weight: 600;
    padding: 3px 8px; border-radius: 6px;
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}

.badge-success { background: #ECFDF5; color: #047857; }
.badge-danger  { background: #FEF2F2; color: #B91C1C; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-info    { background: #EFF6FF; color: #1D4ED8; }
.badge-primary { background: #EFF6FF; color: #1E3A5F; }

/* =========================================
   KPI CARDS
   ========================================= */
.kpi-card {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 18px;
    background: #fff;
    transition: box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.kpi-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.kpi-value {
    font-size: 26px; font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.kpi-label {
    font-size: 12.5px; color: #6B7280; font-weight: 500;
}

/* =========================================
   MODAL CONTENT STYLES
   Layout/positioning is in style.css
   ========================================= */

/* Widget config modal (dashboard customize) */
.widget-config-modal .widget-list {
    list-style: none; padding: 0; margin: 0;
}

.widget-config-modal .widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 6px;
    background: #fff;
    cursor: grab;
    transition: all 0.15s ease;
}

.widget-config-modal .widget-item:hover {
    border-color: #D1D5DB;
    background: #F8FAFC;
}

.widget-config-modal .widget-item:active {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.widget-config-modal .widget-item .drag-icon {
    color: #D1D5DB; font-size: 14px;
}

.widget-config-modal .widget-item label {
    flex: 1; cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.widget-config-modal .widget-item label i {
    color: #2563EB; margin-right: 6px; width: 16px; text-align: center;
}

.widget-config-modal .widget-item input[type="checkbox"] {
    width: 18px; height: 18px; min-height: auto;
    accent-color: #2563EB;
    border-radius: 4px;
    cursor: pointer;
}

/* Settings sections (revenue, etc.) */
.settings-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.settings-section h4 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px;
    font-size: 15px; font-weight: 700;
    color: #1E3A5F;
}

.settings-section h4 i { color: #2563EB; font-size: 14px; }

/* Price alerts */
.price-alerts-list { display: flex; flex-direction: column; gap: 8px; }
.price-alert-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 10px;
    background: #fff; transition: all 0.15s ease;
}
.price-alert-item:hover { border-color: #D1D5DB; background: #F8FAFC; }
.price-alert-item.inactive { opacity: 0.5; }
.price-alert-info { flex: 1; min-width: 0; }
.price-alert-target { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.price-alert-target strong { font-size: 14px; color: #1E3A5F; }
.price-alert-rule { font-size: 13px; color: #6B7280; display: flex; align-items: center; gap: 6px; }
.price-alert-rule strong { color: #1E3A5F; }
.price-alert-channels { display: flex; gap: 6px; color: #9CA3AF; font-size: 12px; margin-left: 4px; }
.price-alert-actions { display: flex; gap: 4px; flex-shrink: 0; margin-left: 12px; }
[data-theme="dark"] .price-alert-item { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .price-alert-item:hover { background: #263449; }
[data-theme="dark"] .price-alert-target strong,
[data-theme="dark"] .price-alert-rule strong { color: #E2E8F0; }
[data-theme="dark"] .price-alert-rule { color: #94A3B8; }

/* Competitors table in modal */
.competitors-list { display: flex; flex-direction: column; gap: 6px; }

.competitors-header {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 72px;
    gap: 8px; padding: 8px 10px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 11px; font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.competitor-row {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 72px;
    gap: 8px; align-items: center;
}

.competitor-num {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: #EFF6FF; border-radius: 6px;
    font-weight: 700; color: #2563EB; font-size: 12px;
}

.competitor-row .form-group { margin: 0; }

.competitor-row input, .competitor-row select {
    padding: 7px 10px; font-size: 13px; min-height: 34px;
}

/* =========================================
   TOASTS
   ========================================= */
.toast {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 500;
    border-left-width: 3px;
}

/* =========================================
   NOTIFICATION DROPDOWN
   ========================================= */
.notification-dropdown {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #E5E7EB;
}

.notification-item { transition: all 0.15s ease; }
.notification-item:hover { background: #F8FAFC; }

.notification-item.unread {
    background: #F0F7FF;
    border-left: 3px solid #2563EB;
}

/* =========================================
   TABS
   ========================================= */
.tabs {
    display: flex; gap: 2px;
    background: #F3F4F6;
    padding: 3px; border-radius: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px; border: none;
    background: transparent; border-radius: 7px;
    font-size: 13px; font-weight: 500;
    color: #6B7280;
    cursor: pointer; transition: all 0.15s ease;
    flex: 1; text-align: center;
}

.tab-btn:hover { color: #374151; }

.tab-btn.active {
    background: #fff; color: #1E3A5F;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* =========================================
   FILTER CHIPS
   ========================================= */
.filter-chip, .filter-btn {
    padding: 6px 14px; border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    font-size: 12.5px; font-weight: 500;
    color: #4B5563;
    cursor: pointer; transition: all 0.15s ease;
}

.filter-chip:hover, .filter-btn:hover {
    border-color: #D1D5DB; background: #F9FAFB;
}

.filter-chip.active, .filter-btn.active {
    background: #EFF6FF; border-color: #BFDBFE;
    color: #1D4ED8; font-weight: 600;
}

/* =========================================
   EMPTY / LOADING STATES
   ========================================= */
.empty-state {
    padding: 48px 24px; text-align: center;
    color: #9CA3AF;
}
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; opacity: 0.4; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto; line-height: 1.5; }

.loading-spinner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 48px 24px; gap: 12px;
    color: #9CA3AF;
}

.loading-spinner .spinner {
    width: 32px; height: 32px;
    border: 3px solid #E5E7EB;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   ALERTS
   ========================================= */
.alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 13.5px;
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 16px;
}

.alert-danger  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* =========================================
   SWITCHES
   ========================================= */
.switch {
    position: relative; width: 40px; height: 22px;
    background: #D1D5DB; border-radius: 11px;
    cursor: pointer; transition: background 0.2s ease;
}

.switch.active, .switch:has(input:checked) { background: #2563EB; }

.switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.switch.active::after, .switch:has(input:checked)::after {
    transform: translateX(18px);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; margin-top: 20px;
}

.pagination .page-btn {
    min-width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #E5E7EB; border-radius: 6px;
    background: #fff;
    font-size: 13px; font-weight: 500; color: #4B5563;
    cursor: pointer; transition: all 0.15s ease;
}

.pagination .page-btn:hover { background: #F9FAFB; border-color: #D1D5DB; }

.pagination .page-btn.active {
    background: #2563EB; color: #fff; border-color: #2563EB;
}

/* =========================================
   DASHBOARD SPECIFICS
   ========================================= */

/* Dashboard section headers */
.dashboard-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}

.dashboard-section-header h3 {
    font-size: 15px; font-weight: 700;
    color: #1E3A5F;
}

/* Voir tout links */
.dashboard-section-header .btn-sm,
.voir-tout-btn {
    font-size: 12px; color: #2563EB;
    font-weight: 500;
}

/* =========================================
   DARK MODE
   ========================================= */
[data-theme="dark"] #app { background: #0F172A; }

[data-theme="dark"] .card { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .card-header { background: #1E293B; border-color: #334155; }

[data-theme="dark"] .main-header {
    background: #1E293B; border-color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .page-title, [data-theme="dark"] #page-title { color: #E2E8F0; }
[data-theme="dark"] .page-header h2 { color: #E2E8F0; }
[data-theme="dark"] .page-header h2 i { color: #60A5FA; }
[data-theme="dark"] .card-header h3, [data-theme="dark"] .card-header .card-title { color: #E2E8F0; }

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%);
    box-shadow: 2px 0 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .page-content { background: #0F172A; }

[data-theme="dark"] .kpi-card { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .kpi-value { color: #F1F5F9; }

[data-theme="dark"] .table thead th { background: #1E293B; color: #94A3B8; border-color: #334155; }
[data-theme="dark"] .table tbody td { color: #CBD5E1; border-color: #1E293B; }
[data-theme="dark"] .table tbody tr:hover td { background: rgba(37, 99, 235, 0.05); }

/* Dark mode modal - defined in style.css */

[data-theme="dark"] .widget-config-modal .widget-item {
    background: #1E293B; border-color: #334155; color: #CBD5E1;
}
[data-theme="dark"] .widget-config-modal .widget-item:hover { background: #263449; }
[data-theme="dark"] .widget-config-modal .widget-item label { color: #CBD5E1; }
[data-theme="dark"] .widget-config-modal .widget-item label i { color: #60A5FA; }

[data-theme="dark"] .settings-section { border-color: #334155; }
[data-theme="dark"] .settings-section h4 { color: #E2E8F0; }
[data-theme="dark"] .settings-section h4 i { color: #60A5FA; }
[data-theme="dark"] .competitors-header { background: #172033; color: #94A3B8; }
[data-theme="dark"] .competitor-num { background: rgba(37, 99, 235, 0.15); color: #60A5FA; }

[data-theme="dark"] .notification-item.unread {
    background: rgba(37, 99, 235, 0.08);
    border-left-color: #60A5FA;
}

[data-theme="dark"] .tabs { background: #334155; }
[data-theme="dark"] .tab-btn { color: #94A3B8; }
[data-theme="dark"] .tab-btn.active { background: #1E293B; color: #E2E8F0; box-shadow: none; }

[data-theme="dark"] .filter-chip, [data-theme="dark"] .filter-btn {
    background: #1E293B; border-color: #334155; color: #94A3B8;
}
[data-theme="dark"] .filter-chip.active, [data-theme="dark"] .filter-btn.active {
    background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.25); color: #60A5FA;
}

[data-theme="dark"] .badge-success { background: rgba(16, 185, 129, 0.12); color: #34D399; }
[data-theme="dark"] .badge-danger  { background: rgba(239, 68, 68, 0.12); color: #F87171; }
[data-theme="dark"] .badge-warning { background: rgba(245, 158, 11, 0.12); color: #FBBF24; }
[data-theme="dark"] .badge-info    { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }
[data-theme="dark"] .badge-primary { background: rgba(37, 99, 235, 0.12); color: #93C5FD; }

[data-theme="dark"] .pagination .page-btn { background: #1E293B; border-color: #334155; color: #94A3B8; }
[data-theme="dark"] .pagination .page-btn.active { background: #2563EB; border-color: #2563EB; color: #fff; }

[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #0F172A; border-color: #334155; color: #E2E8F0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .btn-outline { background: #1E293B; border-color: #334155; color: #CBD5E1; }
[data-theme="dark"] .btn-outline:hover { background: #263449; border-color: #475569; }

[data-theme="dark"] .alert-danger  { background: rgba(239, 68, 68, 0.1); color: #F87171; border-color: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .alert-warning { background: rgba(245, 158, 11, 0.1); color: #FBBF24; border-color: rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .alert-success { background: rgba(16, 185, 129, 0.1); color: #34D399; border-color: rgba(16, 185, 129, 0.2); }
[data-theme="dark"] .alert-info    { background: rgba(59, 130, 246, 0.1); color: #60A5FA; border-color: rgba(59, 130, 246, 0.2); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .page-content { padding: 16px; }
    .kpi-card { padding: 14px; }
    .kpi-value { font-size: 22px; }
    .card-body { padding: 16px; }

    .competitors-header,
    .competitor-row { grid-template-columns: 28px 1fr 1fr 60px; gap: 4px; }

    .header-quick-settings { border-left: none; margin-left: 4px; padding-left: 4px; }
}

/* 480px modal responsive - defined in style.css */
