/* _content/TS.Cronos.OT.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* =============================================
   MAIN LAYOUT - MainLayout.razor.css
   ============================================= */

/* Quitar márgenes globales */
*[b-zs6fj15rr0], *[b-zs6fj15rr0]::before, *[b-zs6fj15rr0]::after {
    box-sizing: border-box;
}

html[b-zs6fj15rr0], body[b-zs6fj15rr0] {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Layout principal: sidebar + contenido lado a lado */
.main-layout[b-zs6fj15rr0] {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #f8fafc;
}

/* Área de contenido: ocupa todo el espacio restante */
.content-area[b-zs6fj15rr0] {
    flex: 1;
    min-width: 0; /* importante para que no desborde */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

main[b-zs6fj15rr0] {
    flex: 1;
    overflow-y: auto;
}

/* ── Responsive mobile ── */
@media (max-width: 640px) {
    .main-layout[b-zs6fj15rr0] {
        flex-direction: column;
    }

    .content-area[b-zs6fj15rr0] {
        width: 100%;
    }
}
/* _content/TS.Cronos.OT.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* =============================================
   SIDEBAR - NavMenu.razor.css (Blazor fixed)
   ============================================= */

.sidebar[b-021kg38tmr] {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(160deg, #0f1535 0%, #1a1f4b 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.sidebar.collapsed[b-021kg38tmr] {
    width: 68px;
}

.sidebar-header[b-021kg38tmr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 64px;
    gap: 0.5rem;
}

.brand-area[b-021kg38tmr] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
    flex: 1;
}

.logo-wrapper[b-021kg38tmr] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.brand-logo[b-021kg38tmr] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-fallback[b-021kg38tmr] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.brand-name[b-021kg38tmr] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.25s ease;
    letter-spacing: 0.3px;
    text-decoration: none !important;
}

.sidebar.collapsed .brand-name[b-021kg38tmr] {
    opacity: 0;
    width: 0;
}

.toggle-btn[b-021kg38tmr] {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #8892a4;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.toggle-btn:hover[b-021kg38tmr] {
    background: rgba(108, 99, 255, 0.15);
    color: #6c63ff;
    border-color: #6c63ff;
}

.toggle-icon[b-021kg38tmr] {
    width: 14px;
    height: 14px;
}

.sidebar-nav[b-021kg38tmr] {
    flex: 1;
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar[b-021kg38tmr]  .nav-link-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem !important;
    border-radius: 10px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.sidebar[b-021kg38tmr]  .nav-link-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.sidebar[b-021kg38tmr]  .nav-link-item.active {
    background: rgba(108, 99, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.3);
}

.sidebar[b-021kg38tmr]  .nav-highlight {
    color: #a78bfa !important;
    margin-top: 0.5rem;
}

.sidebar[b-021kg38tmr]  .nav-highlight:hover {
    background: rgba(167, 139, 250, 0.15) !important;
    color: #c4b5fd !important;
}

.nav-icon[b-021kg38tmr] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #8892a4;
    transition: color 0.25s ease;
}

.nav-icon svg[b-021kg38tmr] {
    width: 18px;
    height: 18px;
}

.sidebar[b-021kg38tmr]  .nav-link-item:hover .nav-icon,
.sidebar[b-021kg38tmr]  .nav-link-item.active .nav-icon {
    color: #6c63ff;
}

.nav-label[b-021kg38tmr] {
    opacity: 1;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    color: inherit;
}

.sidebar.collapsed .nav-label[b-021kg38tmr] {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.nav-group[b-021kg38tmr] {
    margin-bottom: 2px;
}

.nav-group-header[b-021kg38tmr] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
}

.nav-group-header:hover[b-021kg38tmr] {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.nav-group.open .nav-group-header[b-021kg38tmr] {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.nav-group.open .nav-group-header .nav-icon[b-021kg38tmr] {
    color: #6c63ff;
}

.chevron[b-021kg38tmr] {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chevron svg[b-021kg38tmr] {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.nav-group.open .chevron svg[b-021kg38tmr] {
    transform: rotate(180deg);
}

.sidebar.collapsed .chevron[b-021kg38tmr] {
    display: none;
}

.nav-submenu[b-021kg38tmr] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0.5rem;
}

.nav-group.open .nav-submenu[b-021kg38tmr] {
    max-height: 300px;
}

.sidebar.collapsed .nav-submenu[b-021kg38tmr] {
    display: none;
}

.sidebar[b-021kg38tmr]  .nav-sublink {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    color: #8892a4 !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 400;
    margin-bottom: 1px;
    transition: all 0.25s ease;
}

.sidebar[b-021kg38tmr]  .nav-sublink:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
}

.sidebar[b-021kg38tmr]  .nav-sublink.active {
    color: #6c63ff !important;
    background: rgba(108, 99, 255, 0.15) !important;
}

.sub-dot[b-021kg38tmr] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8892a4;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.sidebar[b-021kg38tmr]  .nav-sublink:hover .sub-dot,
.sidebar[b-021kg38tmr]  .nav-sublink.active .sub-dot {
    background: #6c63ff;
}

.sidebar-footer[b-021kg38tmr] {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-info[b-021kg38tmr] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.25rem;
    overflow: hidden;
}

.avatar[b-021kg38tmr] {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-details[b-021kg38tmr] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.sidebar.collapsed .user-details[b-021kg38tmr] {
    opacity: 0;
    width: 0;
}

.user-name[b-021kg38tmr] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.user-role[b-021kg38tmr] {
    font-size: 0.72rem;
    color: #8892a4;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .sidebar.collapsed[b-021kg38tmr] {
        transform: translateX(-100%);
        width: 240px;
    }
}
/* _content/TS.Cronos.OT.Web/Components/Pages/Login.razor.rz.scp.css */
/* =============================================
   LOGIN - Login.razor.css
   ============================================= */

/* Reset para la pantalla de login */
.login-wrapper[b-qdmigph8o4] {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ══════════════════════════════════
   PANEL IZQUIERDO — Imagen grande
══════════════════════════════════ */
.login-image-panel[b-qdmigph8o4] {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f1535 0%, #1a1f4b 100%);
}

.login-bg-img[b-qdmigph8o4] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Cuando no hay imagen, el panel muestra el degradado */
.login-image-panel.no-image[b-qdmigph8o4] {
    background: linear-gradient(160deg, #0f1535 0%, #1a1f4b 100%);
}

/* Overlay oscuro encima de la imagen */
.image-overlay[b-qdmigph8o4] {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 21, 53, 0.75) 0%,
        rgba(26, 31, 75, 0.65) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.overlay-content[b-qdmigph8o4] {
    text-align: center;
    color: white;
    animation: fadeInUp-b-qdmigph8o4 0.8s ease both;
}

.overlay-logo[b-qdmigph8o4] {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    overflow: hidden;
}

.overlay-logo img[b-qdmigph8o4] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overlay-logo-fallback[b-qdmigph8o4] {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
}

.overlay-title[b-qdmigph8o4] {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.overlay-subtitle[b-qdmigph8o4] {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.overlay-divider[b-qdmigph8o4] {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c63ff, #a78bfa);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.overlay-desc[b-qdmigph8o4] {
    font-size: 0.85rem;
    opacity: 0.65;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════
   PANEL DERECHO — Formulario
══════════════════════════════════ */
.login-form-panel[b-qdmigph8o4] {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2rem;
}

.form-container[b-qdmigph8o4] {
    width: 100%;
    max-width: 360px;
    animation: fadeInRight-b-qdmigph8o4 0.6s ease both 0.2s;
}

/* Logo mobile */
.mobile-brand[b-qdmigph8o4] {
    display: none;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1535;
}

.mobile-logo[b-qdmigph8o4] {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c63ff, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

/* Header del form */
.form-header[b-qdmigph8o4] {
    margin-bottom: 2rem;
}

.form-title[b-qdmigph8o4] {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.5px;
}

.form-subtitle[b-qdmigph8o4] {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Campos */
.field-group[b-qdmigph8o4] {
    margin-bottom: 1.25rem;
}

.field-label[b-qdmigph8o4] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.field-input-wrapper[b-qdmigph8o4] {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon[b-qdmigph8o4] {
    position: absolute;
    left: 0.85rem;
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
}

.field-icon svg[b-qdmigph8o4] {
    width: 18px;
    height: 18px;
}

.field-input[b-qdmigph8o4] {
    width: 100%;
    padding: 0.75rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.field-input:focus[b-qdmigph8o4] {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.field-input[b-qdmigph8o4]::placeholder {
    color: #cbd5e1;
}

.toggle-pass[b-qdmigph8o4] {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.toggle-pass:hover[b-qdmigph8o4] {
    color: #6c63ff;
}

.toggle-pass svg[b-qdmigph8o4] {
    width: 18px;
    height: 18px;
}

/* Alerta de error */
.alert-error[b-qdmigph8o4] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: shake-b-qdmigph8o4 0.4s ease;
}

.alert-error svg[b-qdmigph8o4] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Botón login */
.btn-login[b-qdmigph8o4] {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #6c63ff, #8b84ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.btn-login:hover:not(:disabled)[b-qdmigph8o4] {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
    background: linear-gradient(135deg, #5b52e8, #7c75ff);
}

.btn-login:active:not(:disabled)[b-qdmigph8o4] {
    transform: translateY(0);
}

.btn-login:disabled[b-qdmigph8o4] {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-login svg[b-qdmigph8o4] {
    width: 20px;
    height: 20px;
}

/* Spinner */
.spinner[b-qdmigph8o4] {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-qdmigph8o4 0.7s linear infinite;
    display: inline-block;
}

/* Footer */
.form-footer[b-qdmigph8o4] {
    margin-top: 2rem;
    text-align: center;
}

.form-footer p[b-qdmigph8o4] {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

/* ══════════════════════════════════
   ANIMACIONES
══════════════════════════════════ */
@keyframes fadeInUp-b-qdmigph8o4 {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight-b-qdmigph8o4 {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin-b-qdmigph8o4 {
    to { transform: rotate(360deg); }
}

@keyframes shake-b-qdmigph8o4 {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    .login-image-panel[b-qdmigph8o4] {
        flex: 1;
    }
    .login-form-panel[b-qdmigph8o4] {
        flex: 0 0 360px;
    }
}

/* Móvil — el panel imagen se oculta, el form ocupa toda la pantalla */
@media (max-width: 640px) {
    .login-wrapper[b-qdmigph8o4] {
        flex-direction: column;
    }

    .login-image-panel[b-qdmigph8o4] {
        display: none;
    }

    .login-form-panel[b-qdmigph8o4] {
        flex: 1;
        padding: 2rem 1.5rem;
        background: #ffffff;
    }

    .mobile-brand[b-qdmigph8o4] {
        display: flex;
    }

    .form-container[b-qdmigph8o4] {
        max-width: 100%;
    }
}
