/* /Layouts/MainLayout.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════
   MainLayout — Sidebar, Topbar & Navigation
   Light/Dark theme support
   ══════════════════════════════════════════════════════════════ */

.app-container[b-cc15ani56t] { display: flex; min-height: 100vh; color: var(--text-primary); background: var(--bg-secondary); }

/* ── Sidebar (Light mode default) ── */
.sidebar[b-cc15ani56t] {
    width: 260px;
    background: #ffffff;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    border-right: 1px solid var(--border-secondary);
    box-shadow: 2px 0 8px rgba(2, 24, 43, 0.04);
    transition: width 0.25s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sidebar.collapsed[b-cc15ani56t] {
    width: 0;
    border-right: none;
    box-shadow: none;
}
[data-theme="dark"] .sidebar[b-cc15ani56t] {
    background: linear-gradient(180deg, #02182B 0%, #061f35 100%);
    color: #f0f9ff;
    border-right-color: rgba(34, 211, 238, 0.08);
    box-shadow: 2px 0 12px rgba(2, 24, 43, 0.15);
}

.sidebar-header[b-cc15ani56t] {
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border-secondary);
}
[data-theme="dark"] .sidebar-header[b-cc15ani56t] {
    border-bottom-color: rgba(34, 211, 238, 0.1);
    background: rgba(0, 0, 0, 0.1);
}
.sidebar-header h3[b-cc15ani56t] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
}
[data-theme="dark"] .sidebar-header h3[b-cc15ani56t] {
    background: linear-gradient(135deg, #22d3ee, #67e8f9, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle[b-cc15ani56t] {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.125rem;
}
[data-theme="dark"] .subtitle[b-cc15ani56t] {
    color: rgba(125, 211, 252, 0.5);
}

/* ── Navigation Menu ── */
.nav-menu[b-cc15ani56t] {
    list-style: none;
    padding: 0.5rem 0.625rem;
    flex: 1;
    margin: 0;
}
.nav-section[b-cc15ani56t] {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    padding: 1.25rem 0.75rem 0.375rem;
    font-weight: 600;
}
[data-theme="dark"] .nav-section[b-cc15ani56t] {
    color: rgba(56, 189, 248, 0.4);
}
.nav-link[b-cc15ani56t] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}
[data-theme="dark"] .nav-link[b-cc15ani56t] {
    color: rgba(240, 249, 255, 0.55);
}
.nav-link:hover[b-cc15ani56t] {
    background: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
}
[data-theme="dark"] .nav-link:hover[b-cc15ani56t] {
    background: rgba(34, 211, 238, 0.08);
    color: #f0f9ff;
}
.nav-link.active[b-cc15ani56t] {
    background: rgba(8, 145, 178, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(0.75rem - 3px);
}
[data-theme="dark"] .nav-link.active[b-cc15ani56t] {
    background: rgba(8, 145, 178, 0.2);
    color: #22d3ee;
    border-left-color: #22d3ee;
}

/* ── Main Content Area ── */
.main-content[b-cc15ani56t] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    min-width: 0;
    transition: background-color 0.3s ease, width 0.25s ease;
}

/* ── Top Bar ── */
.top-bar[b-cc15ani56t] {
    background: var(--bg-card);
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 56px;
    box-shadow: 0 1px 3px rgba(2, 24, 43, 0.06);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.topbar-datetime[b-cc15ani56t] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-secondary);
    white-space: nowrap;
}
[data-theme="dark"] .topbar-datetime[b-cc15ani56t] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 211, 238, 0.08);
}
.topbar-datetime-icon[b-cc15ani56t] {
    color: var(--accent-primary);
    flex-shrink: 0;
}
.topbar-date[b-cc15ani56t] {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}
.topbar-time[b-cc15ani56t] {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.topbar-spacer[b-cc15ani56t] {
    flex: 1;
}

/* ── Profile Dropdown ── */
.profile-wrapper[b-cc15ani56t] {
    position: relative;
}
.topbar-btn-profile:hover[b-cc15ani56t] {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(8, 145, 178, 0.08);
}
.profile-overlay[b-cc15ani56t] {
    position: fixed;
    inset: 0;
    z-index: 99;
}
.profile-dropdown[b-cc15ani56t] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    animation: scaleIn-b-cc15ani56t 0.15s ease;
    overflow: hidden;
}
[data-theme="dark"] .profile-dropdown[b-cc15ani56t] {
    background: #0a2540;
    border-color: rgba(34, 211, 238, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.profile-header[b-cc15ani56t] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-secondary);
}
[data-theme="dark"] .profile-header[b-cc15ani56t] {
    border-bottom-color: rgba(34, 211, 238, 0.08);
}
.profile-avatar[b-cc15ani56t] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}
.profile-header-info[b-cc15ani56t] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.profile-name[b-cc15ani56t] {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-email[b-cc15ani56t] {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-section[b-cc15ani56t] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-secondary);
}
.profile-section:last-child[b-cc15ani56t] {
    border-bottom: none;
}
[data-theme="dark"] .profile-section[b-cc15ani56t] {
    border-bottom-color: rgba(34, 211, 238, 0.08);
}
.profile-info-row[b-cc15ani56t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile-label[b-cc15ani56t] {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.profile-value[b-cc15ani56t] {
    font-size: 0.8rem;
    font-weight: 500;
}
/* ── Language Selector ── */
.profile-lang-selector[b-cc15ani56t] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.profile-lang-btn[b-cc15ani56t] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.profile-lang-btn:hover[b-cc15ani56t] {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}
.profile-lang-btn.active[b-cc15ani56t] {
    background: rgba(8, 145, 178, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}
[data-theme="dark"] .profile-lang-btn[b-cc15ani56t] {
    border-color: rgba(34, 211, 238, 0.1);
    color: rgba(240, 249, 255, 0.55);
}
[data-theme="dark"] .profile-lang-btn:hover[b-cc15ani56t] {
    background: rgba(34, 211, 238, 0.08);
    color: #f0f9ff;
    border-color: rgba(34, 211, 238, 0.2);
}
[data-theme="dark"] .profile-lang-btn.active[b-cc15ani56t] {
    background: rgba(8, 145, 178, 0.2);
    color: #22d3ee;
    border-color: #22d3ee;
}
.profile-lang-flag[b-cc15ani56t] {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    line-height: 1;
}
.profile-lang-btn.active .profile-lang-flag[b-cc15ani56t] {
    background: rgba(8, 145, 178, 0.15);
    color: var(--accent-primary);
}
[data-theme="dark"] .profile-lang-flag[b-cc15ani56t] {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 249, 255, 0.4);
}
[data-theme="dark"] .profile-lang-btn.active .profile-lang-flag[b-cc15ani56t] {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
}
.profile-lang-name[b-cc15ani56t] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-section-logout[b-cc15ani56t] {
    padding: 0.5rem 0.75rem;
}
.profile-logout-btn[b-cc15ani56t] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.profile-logout-btn:hover[b-cc15ani56t] {
    background: rgba(239, 68, 68, 0.1);
}
[data-theme="dark"] .profile-logout-btn:hover[b-cc15ani56t] {
    background: rgba(239, 68, 68, 0.15);
}
.topbar-separator[b-cc15ani56t] {
    width: 1px;
    height: 24px;
    background: var(--border-primary);
}
.topbar-btn[b-cc15ani56t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.topbar-btn:hover[b-cc15ani56t] {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}
.topbar-btn-toggle[b-cc15ani56t] {
    border: none;
}
.topbar-btn-toggle:hover[b-cc15ani56t] {
    background: var(--bg-hover);
    color: var(--accent-primary);
}
.topbar-brand[b-cc15ani56t] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
}
.topbar-brand-title[b-cc15ani56t] {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
}
[data-theme="dark"] .topbar-brand-title[b-cc15ani56t] {
    background: linear-gradient(135deg, #22d3ee, #67e8f9, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.topbar-brand-subtitle[b-cc15ani56t] {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
[data-theme="dark"] .topbar-brand-subtitle[b-cc15ani56t] {
    color: rgba(125, 211, 252, 0.5);
}
.topbar-btn-bell:hover[b-cc15ani56t] {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(8, 145, 178, 0.08);
}
.topbar-btn-theme:hover[b-cc15ani56t] {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(8, 145, 178, 0.08);
}
/* ── Page Name in Top Bar ── */
.topbar-page-name[b-cc15ani56t] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
[data-theme="dark"] .topbar-page-name[b-cc15ani56t] {
    color: #f0f9ff;
}

/* ── Page Content ── */
/* Estilos de .page-content manejados en app.css */

/* ── Login (no sidebar) ── */
.login-container[b-cc15ani56t] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(8, 145, 178, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(34, 211, 238, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #ffffff 50%, #ecfeff 75%, #f0f9ff 100%);
}
[data-theme="dark"] .login-container[b-cc15ani56t] {
    background:
        radial-gradient(circle at 75% 25%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(34, 211, 238, 0.07) 0%, transparent 50%),
        linear-gradient(135deg, #02182B 0%, #061f35 30%, #0a3654 50%, #061f35 70%, #02182B 100%);
}

/* ── Logout Confirm Modal ── */
.modal-overlay[b-cc15ani56t] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn-b-cc15ani56t 0.15s ease;
}
.modal-confirm[b-cc15ani56t] {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn-b-cc15ani56t 0.2s ease;
}
[data-theme="dark"] .modal-confirm[b-cc15ani56t] {
    background: #0a2540;
    border-color: rgba(34, 211, 238, 0.12);
}
.modal-confirm-icon[b-cc15ani56t] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    margin-bottom: 1rem;
}
.modal-confirm h3[b-cc15ani56t] {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.modal-confirm p[b-cc15ani56t] {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.modal-confirm-actions[b-cc15ani56t] {
    display: flex;
    gap: 10px;
}
.btn-modal[b-cc15ani56t] {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-modal-cancel[b-cc15ani56t] {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}
.btn-modal-cancel:hover[b-cc15ani56t] {
    background: var(--bg-secondary);
}
[data-theme="dark"] .btn-modal-cancel[b-cc15ani56t] {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f0f9ff;
}
[data-theme="dark"] .btn-modal-cancel:hover[b-cc15ani56t] {
    background: rgba(255, 255, 255, 0.1);
}
.btn-modal-confirm[b-cc15ani56t] {
    background: var(--danger);
    color: #fff;
}
.btn-modal-confirm:hover[b-cc15ani56t] {
    filter: brightness(1.1);
}

@keyframes fadeIn-b-cc15ani56t {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn-b-cc15ani56t {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar[b-cc15ani56t] { width: 100%; position: fixed; z-index: 100; height: auto; }
    .page-content[b-cc15ani56t] { padding: 1rem; }
    .top-bar[b-cc15ani56t] { padding: 0.75rem 1rem; gap: 0.5rem; }
    .topbar-separator[b-cc15ani56t] { display: none; }
    .topbar-datetime[b-cc15ani56t] { display: none; }
}
