/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Contenedor principal */
.app-container[b-2m9hysf9a1] {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Checkbox oculto para toggle */
.sidebar-checkbox[b-2m9hysf9a1] {
    display: none;
}

/* Sidebar */
.sidebar[b-2m9hysf9a1] {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Contenido principal */
.main-content[b-2m9hysf9a1] {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header superior */
.top-header[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title[b-2m9hysf9a1] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.header-right[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover[b-2m9hysf9a1] {
    background: #e2e8f0;
    color: #1e293b;
}

.header-btn i[b-2m9hysf9a1] {
    font-size: 1.1rem;
}

/* Boton hamburguesa - oculto en desktop */
.menu-toggle[b-2m9hysf9a1] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle:hover[b-2m9hysf9a1] {
    background: #e2e8f0;
    color: #1e293b;
}

.menu-toggle i[b-2m9hysf9a1] {
    font-size: 1.25rem;
}

/* Overlay - oculto por defecto */
.sidebar-overlay[b-2m9hysf9a1] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
}

/* Area de contenido */
.content-area[b-2m9hysf9a1] {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-wrapper[b-2m9hysf9a1] {
    max-width: 1400px;
    margin: 0 auto;
}

/* Error UI */
#blazor-error-ui[b-2m9hysf9a1] {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    padding: 1rem;
}

.error-content[b-2m9hysf9a1] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #991b1b;
}

.error-content i[b-2m9hysf9a1] {
    font-size: 1.25rem;
}

.error-content .reload[b-2m9hysf9a1] {
    color: #dc2626;
    text-decoration: underline;
    cursor: pointer;
}

.error-content .dismiss[b-2m9hysf9a1] {
    cursor: pointer;
    margin-left: 1rem;
    font-weight: bold;
}

/* ======================= */
/* RESPONSIVE - MOBILE     */
/* ======================= */

@media (max-width: 768px) {
    /* Mostrar boton hamburguesa */
    .menu-toggle[b-2m9hysf9a1] {
        display: flex;
    }

    /* Sidebar oculto por defecto */
    .sidebar[b-2m9hysf9a1] {
        transform: translateX(-100%);
    }

    /* Cuando checkbox está checked: mostrar sidebar */
    .sidebar-checkbox:checked ~ .sidebar[b-2m9hysf9a1] {
        transform: translateX(0);
    }

    /* Cuando checkbox está checked: mostrar overlay */
    .sidebar-checkbox:checked ~ .sidebar-overlay[b-2m9hysf9a1] {
        display: block;
    }

    /* Contenido ocupa todo el ancho */
    .main-content[b-2m9hysf9a1] {
        margin-left: 0;
        width: 100%;
    }

    /* Header más compacto */
    .top-header[b-2m9hysf9a1] {
        padding: 0.75rem 1rem;
    }

    .page-title[b-2m9hysf9a1] {
        font-size: 1.1rem;
    }

    /* Contenido con menos padding */
    .content-area[b-2m9hysf9a1] {
        padding: 1rem;
    }

    /* Botones header más pequeños */
    .header-btn[b-2m9hysf9a1] {
        width: 2.25rem;
        height: 2.25rem;
    }

    .header-btn i[b-2m9hysf9a1] {
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar[b-2m9hysf9a1] {
        width: 240px;
    }

    .main-content[b-2m9hysf9a1] {
        margin-left: 240px;
    }

    .content-area[b-2m9hysf9a1] {
        padding: 1.5rem;
    }
}

/* Desktop grande */
@media (min-width: 1025px) {
    .sidebar[b-2m9hysf9a1] {
        width: 280px;
    }

    .main-content[b-2m9hysf9a1] {
        margin-left: 280px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Header con Logo */
.sidebar-header[b-pvdtppgysz] {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container[b-pvdtppgysz] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-icon-wrapper[b-pvdtppgysz] {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.logo-icon[b-pvdtppgysz] {
    font-size: 1.5rem;
    color: white;
}

.logo-text[b-pvdtppgysz] {
    display: flex;
    flex-direction: column;
}

.app-name[b-pvdtppgysz] {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.app-version[b-pvdtppgysz] {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Navegacion */
.nav-scrollable[b-pvdtppgysz] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 6rem);
    overflow-y: auto;
}

.sidebar-nav[b-pvdtppgysz] {
    flex: 1;
    padding: 0.75rem 0;
}

/* Secciones del menu */
.nav-section[b-pvdtppgysz] {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.nav-section-title[b-pvdtppgysz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
}

.nav-section-title i[b-pvdtppgysz] {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Items del menu */
.nav-item[b-pvdtppgysz] {
    padding: 0.2rem 0.75rem;
}

.nav-item[b-pvdtppgysz]  .nav-link,
.nav-item[b-pvdtppgysz]  .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.nav-item[b-pvdtppgysz]  .nav-link span,
.nav-item[b-pvdtppgysz]  .logout-btn span {
    flex: 1;
}

.nav-item[b-pvdtppgysz]  .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Iconos coloridos */
.nav-item[b-pvdtppgysz]  .nav-icon,
.nav-item[b-pvdtppgysz]  .logout-btn .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.nav-item[b-pvdtppgysz]  .nav-icon i,
.nav-item[b-pvdtppgysz]  .logout-btn .nav-icon i {
    font-size: 1rem;
    color: white;
}

/* Colores de iconos */
.nav-item[b-pvdtppgysz]  .nav-icon.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.nav-item[b-pvdtppgysz]  .nav-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Flecha de navegacion */
.nav-item[b-pvdtppgysz]  .nav-arrow {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

/* Hover state */
.nav-item[b-pvdtppgysz]  .nav-link:hover,
.nav-item[b-pvdtppgysz]  .logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-item[b-pvdtppgysz]  .nav-link:hover .nav-arrow,
.nav-item[b-pvdtppgysz]  .logout-btn:hover .nav-arrow {
    color: rgba(255, 255, 255, 0.6);
    transform: translateX(3px);
}

.nav-item[b-pvdtppgysz]  .nav-link:hover .nav-icon,
.nav-item[b-pvdtppgysz]  .logout-btn:hover .nav-icon {
    transform: scale(1.08);
}

/* Active state */
.nav-item[b-pvdtppgysz]  a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-item[b-pvdtppgysz]  a.active .nav-icon {
    box-shadow: 0 6px 20px currentColor;
}

.nav-item[b-pvdtppgysz]  a.active .nav-arrow {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer del sidebar */
.sidebar-footer[b-pvdtppgysz] {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.03) 100%);
}

.footer-content[b-pvdtppgysz] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-icon[b-pvdtppgysz] {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon i[b-pvdtppgysz] {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-text[b-pvdtppgysz] {
    display: flex;
    flex-direction: column;
}

.company-name[b-pvdtppgysz] {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.company-slogan[b-pvdtppgysz] {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .sidebar-header[b-pvdtppgysz] {
        padding: 1rem;
    }

    .logo-icon-wrapper[b-pvdtppgysz] {
        width: 42px;
        height: 42px;
    }

    .logo-icon[b-pvdtppgysz] {
        font-size: 1.25rem;
    }

    .app-name[b-pvdtppgysz] {
        font-size: 1.15rem;
    }

    .nav-item[b-pvdtppgysz]  .nav-link,
    .nav-item[b-pvdtppgysz]  .logout-btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }

    .nav-item[b-pvdtppgysz]  .nav-icon,
    .nav-item[b-pvdtppgysz]  .logout-btn .nav-icon {
        width: 32px;
        height: 32px;
    }

    .nav-item[b-pvdtppgysz]  .nav-icon i,
    .nav-item[b-pvdtppgysz]  .logout-btn .nav-icon i {
        font-size: 0.9rem;
    }

    .footer-content[b-pvdtppgysz] {
        padding: 0.5rem;
    }

    .footer-icon[b-pvdtppgysz] {
        width: 32px;
        height: 32px;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-x1uadop4ao],
.components-reconnect-repeated-attempt-visible[b-x1uadop4ao],
.components-reconnect-failed-visible[b-x1uadop4ao],
.components-pause-visible[b-x1uadop4ao],
.components-resume-failed-visible[b-x1uadop4ao],
.components-rejoining-animation[b-x1uadop4ao] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-retrying[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-failed[b-x1uadop4ao],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-x1uadop4ao] {
    display: block;
}


#components-reconnect-modal[b-x1uadop4ao] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-x1uadop4ao 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-x1uadop4ao 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-x1uadop4ao 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-x1uadop4ao]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-x1uadop4ao 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-x1uadop4ao {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-x1uadop4ao {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-x1uadop4ao {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-x1uadop4ao] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-x1uadop4ao] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-x1uadop4ao] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-x1uadop4ao] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-x1uadop4ao] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-x1uadop4ao] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-x1uadop4ao] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-x1uadop4ao 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-x1uadop4ao] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-x1uadop4ao {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
