/* Cookast Brand System — forecast IA para restaurantes (by Boomatik).
 * Fantasma turquesa → personalidad cool kitchen:
 *   sereno, preciso, chef moderno, cocina mediterránea.
 * UX/UI base Boomatik (sidebar, header, navbar compartidos con BOO apps),
 * accent propio de la app.
 * Accent principal: teal #06B6D4.
 * Escala: cyan/sky secundarios, mint light, forest deep.
 * Aliases --brand-gold/-green mantenidos para compat hasta migrar
 * todos los usos a --brand-accent/--brand-success. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Caveat:wght@400;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    /* === Cookast accent (turquoise cool) === */
    --brand-accent: #06B6D4;         /* teal 500 — turquesa principal */
    --brand-accent-light: #22D3EE;   /* teal 300 — mint */
    --brand-accent-dark: #0891B2;    /* teal 700 — forest pine */
    --brand-accent-soft: #CFFAFE;    /* teal 100 — breeze */
    --brand-accent-glow: rgba(6, 182, 212, 0.38);
    --brand-secondary: #06B6D4;      /* cyan 500 — data viz secundario */
    --brand-sky: #0EA5E9;            /* sky 500 — links, highlights */
    --brand-deep: #164E63;            /* teal 900 — headers dark mode */
    /* Gradient Cookast: de pine profundo a mint (fresh kitchen) */
    --brand-gradient: linear-gradient(135deg, #0891B2 0%, #06B6D4 45%, #22D3EE 100%);
    --brand-gradient-soft: linear-gradient(135deg, #06B6D4 0%, #06B6D4 50%, #0EA5E9 100%);

    /* === Compat aliases (migrar gradualmente) === */
    --brand-gold: var(--brand-accent);
    --brand-gold-light: var(--brand-accent-light);
    --brand-gold-dark: var(--brand-accent-dark);
    /* "brand-green" alias legacy -> apuntan a la paleta Cookast turquesa */
    --brand-green: #0891B2;          /* pine/teal 700 - era verde Bunga */
    --brand-green-light: #06B6D4;    /* teal 500 */
    --brand-green-dark: #164E63;     /* teal 900 */
    /* Accent blue (secondary, links) */
    --brand-blue: #046BD2;
    --brand-blue-hover: #045CB4;
    /* Neutrals */
    --dark-slate: #1E293B;
    --medium-slate: #334155;
    --light-gray: #64748B;
    --accent-gray: #ADB6BE;
    --bg-main: #FAFAF5;
    --bg-white: #FFFFFF;
    --bg-subtle: #F8F8F2;
    --text-primary: #1E293B;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border: #E2E8D0;
    --border-light: #F1F5E9;
    /* Semantic */
    --success: #059669;
    --success-light: #D1FAE5;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    /* Shape */
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0px 4px 12px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0px 8px 24px -4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; }
h1 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

/* ============================================================ */
/* SIDEBAR                                                       */
/* ============================================================ */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 220px;
    background: linear-gradient(180deg, #0f1b2d 0%, #1E293B 100%);
    color: white;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    padding: 0 8px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.sidebar-logo img { height: 30px; width: auto; }

.sidebar-nav { flex: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.nav-item.active { background: var(--brand-accent); color: white; font-weight: 600; }
@keyframes _spin { to { transform: rotate(360deg); } }

/* ============================================================ */
/* MAIN CONTENT                                                  */
/* ============================================================ */
.main { margin-left: 220px; padding: 24px 28px; max-width: 1200px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.page-title { font-size: 20px; color: var(--dark-slate); font-weight: 700; }

/* Filter bar - centered, compact */
.filter-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-main);
    padding: 12px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }

.filter-select, .filter-input {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    background: white;
    color: var(--text-primary);
    height: 32px;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-select:focus, .filter-input:focus { border-color: var(--brand-gold); outline: none; box-shadow: 0 0 0 3px rgba(6, 182, 212,0.08); }

.filter-group { display: flex; align-items: center; gap: 4px; }
.filter-input { width: 118px; font-size: 12px; }

/* Context line */
.context-line {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; font-size: 11px; color: var(--text-muted);
}

/* Export dropdown */
.export-wrap { position: relative; display: inline-block; }
.export-btn {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: white; color: var(--text-muted);
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.export-btn:hover { border-color: var(--brand-gold); color: var(--brand-gold-dark); }
.export-btn svg { flex-shrink: 0; }
.export-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 4px);
    background: white; border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); min-width: 180px; z-index: 50;
    padding: 4px 0; animation: _menuIn 0.15s ease-out;
}
@keyframes _menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.export-menu.open { display: block; }
.export-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 8px 14px; border: none; background: none;
    font-size: 12px; color: var(--text-secondary); cursor: pointer;
    font-family: inherit; text-align: left; transition: background 0.15s;
}
.export-menu button:hover { background: var(--bg-subtle); color: var(--dark-slate); }
.export-menu .menu-sep { height: 1px; background: var(--border-light); margin: 4px 0; }

/* ============================================================ */
/* CARDS                                                         */
/* ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-slate);
    line-height: 1.2;
}

.card-value.gold { color: var(--brand-gold-dark); }
.card-value.blue { color: var(--brand-green); }
.card-value.green { color: var(--success); }
.card-value.red { color: var(--danger); }

.card.mini { padding: 10px 14px; }
.card.mini .card-label { font-size: 10px; margin-bottom: 3px; }
.card.mini .card-value { font-size: 17px; }

/* ============================================================ */
/* TABLES                                                        */
/* ============================================================ */
.table-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 20px;
}

.table-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title { font-size: 15px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; }

th {
    text-align: left;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

tr:hover td { background: var(--bg-subtle); }
tr.alert td { background: var(--danger-light); }
tr.weekend td { background: #FFFBEB; }
tr.weekend.alert td { background: var(--danger-light); }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-high { background: var(--success-light); color: #164E63; }
.badge-medium { background: var(--warning-light); color: #164E63; }
.badge-low { background: var(--danger-light); color: #991B1B; }
.badge-alert { background: var(--danger); color: white; }

/* Team badges */
.team-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 2px;
}
.team-badge.resp { background: #FEF3C7; color: #92400E; }
.team-badge.sr { background: #DCFCE7; color: #164E63; }
.team-badge.jr { background: var(--bg-subtle); color: #475569; }

/* ============================================================ */
/* HEATMAP                                                       */
/* ============================================================ */
.heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.heatmap-day {
    aspect-ratio: 1;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.heatmap-day:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); z-index: 2; }

.heatmap-day .day-num { font-weight: 700; font-size: 13px; }
.heatmap-day .day-rev { font-size: 9px; opacity: 0.75; }
.heatmap-day .day-team { font-size: 8px; opacity: 0.6; font-weight: 600; }

.heat-1 { background: #FFF7ED; color: #9A3412; }
.heat-2 { background: #FFEDD5; color: #C2410C; }
.heat-3 { background: #FB923C; color: #FFFFFF; }
.heat-4 { background: #EA580C; color: #FFFFFF; }
.heat-5 { background: #991B1B; color: #FFFFFF; }

.heatmap-day.today { outline: 2px solid var(--danger); outline-offset: -1px; }

.heatmap-tabs {
    display: flex; gap: 4px; margin-bottom: 12px; justify-content: center;
}
.heatmap-tab {
    padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
    background: var(--bg-white); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
    color: var(--text-secondary); display: flex; align-items: center; gap: 4px;
}
.heatmap-tab:hover { border-color: var(--brand-gold); color: var(--brand-gold-dark); }
.heatmap-tab.active { background: var(--dark-slate); color: white; border-color: var(--dark-slate); font-weight: 600; }

/* ============================================================ */
/* CHARTS                                                        */
/* ============================================================ */
.chart-container {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 18px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.chart-title small { font-weight: 400; color: var(--text-muted); }

/* ============================================================ */
/* AI / CHAT                                                     */
/* ============================================================ */
.ai-card {
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 40%, #164E63 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212,0.12);
    overflow: hidden;
}
.ai-card-header {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.ai-card-header .ai-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212,0.25);
    flex-shrink: 0;
}
.ai-card-header .ai-avatar img { height: 22px; filter: brightness(0) invert(1); }
.ai-card-header h3 { color: white; margin: 0; font-size: 15px; font-weight: 700; }
.ai-card-header .ai-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,0.4);
}
.ai-card-header .ai-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #06B6D4; box-shadow: 0 0 6px rgba(6, 182, 212,0.6);
    animation: _aiPulse 2s ease-in-out infinite;
}
@keyframes _aiPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.ai-card-body { padding: 16px 22px; }

.ai-card h3 { color: var(--brand-gold); margin-bottom: 10px; font-size: 16px; }
.ai-card p { color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 6px; font-size: 13px; }

/* Quick action buttons */
.ai-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ai-quick-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px 14px; cursor: pointer; text-align: left;
    transition: all 0.2s; color: white;
}
.ai-quick-btn:hover {
    background: rgba(6, 182, 212,0.08); border-color: rgba(6, 182, 212,0.2);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ai-quick-btn strong { color: var(--brand-gold); font-size: 12px; display: block; margin-bottom: 2px; }
.ai-quick-btn span { font-size: 10px; color: rgba(255,255,255,0.4); }
.ai-quick-btn.disabled {
    opacity: 0.4; cursor: not-allowed;
    background: rgba(255,255,255,0.01); border-color: rgba(255,255,255,0.04);
}
.ai-quick-btn.disabled:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.01); }

/* Chat history */
.chat-history {
    min-height: 200px;
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    margin-bottom: 0;
    padding: 16px 22px;
    scroll-behavior: smooth;
}
.chat-history::-webkit-scrollbar { width: 4px; }
.chat-history::-webkit-scrollbar-track { background: transparent; }
.chat-history::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
@media (max-width: 768px) {
    .chat-history { max-height: calc(100vh - 320px); padding: 12px 16px; }
}

/* Chat messages */
.chat-msg {
    display: flex; gap: 10px; margin-bottom: 16px;
    animation: _msgIn 0.3s ease-out;
}
@keyframes _msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.chat-msg .msg-avatar {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.chat-msg .msg-bubble {
    flex: 1; padding: 12px 16px; border-radius: 12px;
    font-size: 13px; line-height: 1.7; min-width: 0;
    position: relative;
}

/* User messages */
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg.user .msg-avatar {
    background: linear-gradient(135deg, rgba(6, 182, 212,0.2), rgba(6, 182, 212,0.1));
    color: #06B6D4;
}
.chat-msg.user .msg-bubble {
    background: rgba(6, 182, 212,0.08); border: 1px solid rgba(6, 182, 212,0.12);
    color: rgba(255,255,255,0.9); border-bottom-right-radius: 4px;
}

/* AI messages */
.chat-msg.ai .msg-avatar {
    background: linear-gradient(135deg, rgba(6, 182, 212,0.3), rgba(6, 182, 212,0.15));
    overflow: hidden;
}
.chat-msg.ai .msg-avatar img { height: 18px; opacity: 0.9; }
.chat-msg.ai .msg-bubble {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85); border-bottom-left-radius: 4px;
}
.chat-msg.ai .msg-bubble strong { color: var(--brand-gold); }

/* AI loading animation */
.chat-msg.ai .msg-bubble .typing-dots {
    display: inline-flex; gap: 4px; align-items: center; height: 20px;
}
.chat-msg.ai .msg-bubble .typing-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: _typing 1.2s ease-in-out infinite;
}
.chat-msg.ai .msg-bubble .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.ai .msg-bubble .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes _typing { 0%,60%,100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1.2); } }

/* Chat input bar */
.chat-input-bar {
    display: flex; gap: 8px; padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.1);
}
.chat-input {
    flex: 1; padding: 12px 16px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: white; font-size: 14px; font-family: inherit;
    transition: all 0.2s;
}
.chat-input:focus {
    outline: none; border-color: rgba(6, 182, 212,0.3);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(6, 182, 212,0.08);
}
.chat-input::placeholder { color: rgba(255,255,255,0.25); }
.chat-send-btn {
    padding: 12px 20px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    color: #ffffff; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.2px;
}
.chat-send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(6, 182, 212,0.45); filter: brightness(1.08); }
.chat-send-btn:active { transform: translateY(0); filter: brightness(0.95); box-shadow: 0 1px 4px rgba(6, 182, 212,0.35); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.chat-send-btn svg { flex-shrink: 0; }

/* ============================================================ */
/* INFO BOX                                                      */
/* ============================================================ */
.info-box {
    background: #FEFCE8;
    border: 1px solid #FDE68A;
    border-left: 3px solid var(--brand-gold);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 12px;
    color: #164E63;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ============================================================ */
/* BUTTONS                                                       */
/* ============================================================ */
.btn {
    padding: 7px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #ffffff !important; font-weight: 700;
    box-shadow: 0 4px 14px rgba(6,182,212,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 0.3px;
}
.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 6px 20px rgba(6,182,212,0.45); }
.btn-gold:active { filter: brightness(0.95); }
.btn-blue {
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-deep) 100%);
    color: #ffffff !important; font-weight: 700;
    box-shadow: 0 4px 14px rgba(6,182,212,0.25);
}
.btn-blue:hover { filter: brightness(1.12); box-shadow: 0 6px 20px rgba(6,182,212,0.4); }

/* ============================================================ */
/* EMPLOYEE                                                      */
/* ============================================================ */
.employee-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
    margin-bottom: 4px;
    transition: background 0.15s;
}
.employee-card:hover { background: var(--bg-subtle); border-color: var(--brand-blue); }

.employee-dept {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border);
}

/* ============================================================ */
/* LOGIN                                                         */
/* ============================================================ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--dark-slate);
}

.login-box {
    background: linear-gradient(180deg, rgba(15,27,45,0.92) 0%, rgba(22,78,99,0.25) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(6,182,212,0.18);
    border-radius: var(--radius-lg);
    padding: 22px 28px 26px;
    width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(6,182,212,0.08);
    text-align: center;
    color: #fff;
}

.login-box img { height: 36px; margin-bottom: 20px; }

.login-box input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
    transition: all .2s;
}
.login-box input::placeholder { color: rgba(255,255,255,0.45); }
.login-box input:focus { outline:none; border-color: #06B6D4; background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(6,182,212,0.18); }

.login-error { color: var(--danger); font-size: 13px; margin-bottom: 10px; }

/* ============================================================ */
/* UX POLISH                                                     */
/* ============================================================ */
/* Card hover lift */
.card { transition: box-shadow 0.25s ease, transform 0.2s ease; }
.card:hover { transform: translateY(-1px); }

/* Page section fade-in */
.page-section { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border-light) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 14px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .heatmap { gap: 2px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .filters { width: 100%; }
}
