@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131929;
    --bg-card: rgba(26, 34, 52, 0.75);
    --bg-card-hover: rgba(36, 48, 74, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* App Layout */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.nav-item button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.nav-item button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item button.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.nav-icon {
    font-size: 1.2rem;
}

.env-badge-container {
    margin-top: auto;
    padding-top: 20px;
}

.env-badge {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.env-badge.sandbox {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.env-badge.prod {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.env-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.env-badge.sandbox .env-dot { background: var(--accent-amber); box-shadow: 0 0 10px var(--accent-amber); }
.env-badge.prod .env-dot { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.06), transparent 40%);
}

.topbar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(19, 25, 41, 0.5);
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.content-wrapper {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.row-pending td {
    background: rgba(245, 158, 11, 0.04) !important;
}
.row-pending:hover td {
    background: rgba(245, 158, 11, 0.08) !important;
}

.table-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(11, 15, 25, 0.4);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.dash-filter-pill {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.dash-filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dash-filter-pill.active {
    background: var(--accent-indigo);
    color: #fff;
    border-color: var(--accent-indigo);
    font-weight: 600;
}

.dash-filter-pill.active.pill-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: #f59e0b;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.stat-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select.form-control {
    cursor: pointer;
}

/* Custom File Upload */
.file-upload-zone {
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    background: rgba(99, 102, 241, 0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-upload-zone:hover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Report Section Themes & Colors */
.card-theme-emerald {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(26, 34, 52, 0.75) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}
.card-theme-emerald:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.12);
}

.card-theme-purple {
    border-color: rgba(168, 85, 247, 0.25);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.04) 0%, rgba(26, 34, 52, 0.75) 100%);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.05);
}
.card-theme-purple:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.12);
}

.card-theme-cyan {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.04) 0%, rgba(26, 34, 52, 0.75) 100%);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.05);
}
.card-theme-cyan:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.12);
}

.card-theme-blue {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, rgba(26, 34, 52, 0.75) 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05);
}

/* Custom Themed Badges & Highlights */
.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-emerald { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.tag-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.tag-cyan { background: rgba(6, 182, 212, 0.18); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.35); }
.tag-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }

/* Table Column Color Accents */
.col-accent-emerald {
    color: #34d399 !important;
    font-weight: 700;
}
.col-accent-amber {
    color: #fbbf24 !important;
    font-weight: 600;
}
.col-accent-cyan {
    color: #38bdf8 !important;
    font-weight: 600;
}
.col-accent-purple {
    color: #c084fc !important;
    font-weight: 600;
}

.table-header-emerald th {
    background: rgba(16, 185, 129, 0.06);
    color: #a7f3d0;
}
.table-header-purple th {
    background: rgba(168, 85, 247, 0.06);
    color: #e9d5ff;
}
.table-header-cyan th {
    background: rgba(6, 182, 212, 0.06);
    color: #bae6fd;
}

/* Condicion IVA Badges */
.badge-cond-01 { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cond-02 { background: rgba(6, 182, 212, 0.18); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-cond-03 { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-cond-04 { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cond-05 { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Quick Metric Mini-Card in Report Header */
.report-stat-mini {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}
.report-stat-mini:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.report-stat-mini.border-blue { border-left: 4px solid var(--accent-blue); }
.report-stat-mini.border-emerald { border-left: 4px solid var(--accent-emerald); }
.report-stat-mini.border-cyan { border-left: 4px solid var(--accent-cyan); }
.report-stat-mini.border-amber { border-left: 4px solid var(--accent-amber); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

.btn-danger:hover {
    background: var(--accent-rose);
    color: #fff;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 18px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-danger { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    width: 100%;
    max-width: 540px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-card-lg {
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
}

.decision-pills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.decision-pill-option {
    border: 2px solid var(--border-color);
    background: rgba(11, 15, 25, 0.6);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.decision-pill-option:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.decision-pill-option.active-accept {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.decision-pill-option.active-partial {
    border-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.decision-pill-option.active-reject {
    border-color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.12);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}

.factura-preview-card {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

/* Toast Alerts */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
}

/* Month & Period Selector Filter Toolbar */
.period-toolbar {
    background: rgba(11, 15, 25, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.period-pills-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.period-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.period-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.3);
}

.period-pill.active {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.month-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.month-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.period-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .period-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Barra de Acciones en Lote */
.batch-action-bar {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    margin: 15px 20px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideUp 0.25s ease-out;
}

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

.table-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-cyan);
}

/* ==============================================================================
   ESTILOS DE LOGIN Y AUTENTICACIÓN
   ============================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 45%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.15), transparent 45%),
                #0b0f19;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-card {
    width: 100%;
    max-width: 440px;
    margin: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(20px);
    padding: 36px 32px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.login-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
}

.db-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.db-status-chip.ok {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.db-status-chip.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
}

/* Auto-Refresh Widget & Indicator */
.dash-refresh-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    background: rgba(19, 25, 41, 0.7);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.dash-refresh-widget:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.refresh-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: var(--transition);
}

.refresh-indicator-dot.pulse {
    animation: refreshPulse 1.5s infinite;
}

.refresh-indicator-dot.disabled {
    background: var(--text-muted);
    box-shadow: none;
}

.refresh-indicator-dot.spinning {
    animation: refreshSpin 0.8s linear infinite;
}

@keyframes refreshPulse {
    0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

@keyframes refreshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

