/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hzbmaol3jn] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-hzbmaol3jn] {
    flex: 1;
}

/*Degradado gris oscuro del logo*/
.sidebar[b-hzbmaol3jn] {
    background-image: linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 70%); /*Degradado de gris oscuro a negro D*/

    box-shadow: 4px 0 15px rgba(227, 30, 36, 0.1) /*Sombra con toque rojo D*/
}

.top-row[b-hzbmaol3jn] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-hzbmaol3jn]  a, .top-row[b-hzbmaol3jn]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-hzbmaol3jn]  a:hover, .top-row[b-hzbmaol3jn]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-hzbmaol3jn]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-hzbmaol3jn] {
        justify-content: space-between;
    }

    .top-row[b-hzbmaol3jn]  a, .top-row[b-hzbmaol3jn]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-hzbmaol3jn] {
        flex-direction: row;
    }

    .sidebar[b-hzbmaol3jn] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-hzbmaol3jn] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-hzbmaol3jn]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-hzbmaol3jn], article[b-hzbmaol3jn] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-qmnzp9axmw] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-qmnzp9axmw] {
    height: 3.5rem;
    background-color: #2D2D2D; /*Gris oscuro del logo D*/
    border-bottom: 3px solid #E31E24; /*Borde rojo del logo D*/
}

.navbar-brand[b-qmnzp9axmw] {
    font-size: 1.1rem;
}

.bi[b-qmnzp9axmw] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-qmnzp9axmw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-qmnzp9axmw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-qmnzp9axmw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-qmnzp9axmw] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-qmnzp9axmw] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-qmnzp9axmw] {
        padding-bottom: 1rem;
    }

    .nav-item[b-qmnzp9axmw]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        border-left: 4px solid transparent; /*Indicador de borde D*/
        transition: all 0.3s ease; /*animacion suave D*/
    }

.nav-item[b-qmnzp9axmw]  a.active {
    background-color: rgba(227, 30, 36, 0.15); /*cambio de color rojo suave del logo D*/
    color: white;
    border-left-color: #E31E24; /*Indicador rojo del logo D*/
    font-weight: 600; /*Texto mas grueso D*/
}

.nav-item[b-qmnzp9axmw]  a:hover {
    background-color: rgba(227, 30, 36, 0.08); /*Cambio de color rojo suave D*/
    color: white;
    border-left-color: #E31E24; /*Indicador de borde Rojo D*/
}

@media (min-width: 641px) {
    .navbar-toggler[b-qmnzp9axmw] {
        display: none;
    }

    .collapse[b-qmnzp9axmw] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-qmnzp9axmw] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/login.razor.rz.scp.css */
.login-container[b-qr9f3d659h] {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items:center;
    justify-content: center;
    background: linear-gradient(135deg, #4b5563, #6b7280);
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    overflow: hidden;
    padding: 20px;
}

@keyframes float-b-qr9f3d659h {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, 20px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 40px) rotate(180deg);
    }

    75% {
        transform: translate(40px, -20px) rotate(270deg);
    }
}

.login-card[b-qr9f3d659h] {
    background: rgba(30, 30, 30, 0.95); /* Gris oscuro */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[b-qr9f3d659h], html[b-qr9f3d659h] {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #374151, #4b5563);
    min-height: 100vh;
}

.login-header[b-qr9f3d659h] {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container[b-qr9f3d659h] {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 15px;
}

    .logo-container[b-qr9f3d659h]::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #dc2626, #6b7280);
        border-radius: 20px;
        z-index: -1;
    }

.login-logo[b-qr9f3d659h] {
    width: 100%;
    height: auto;
}

.company-name[b-qr9f3d659h] {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.welcome-text[b-qr9f3d659h] {
    color: #d1d5db;
    font-size: 16px;
    font-weight: 400;
}

.login-form[b-qr9f3d659h] {
    margin-bottom: 30px;
}

.form-group[b-qr9f3d659h] {
    margin-bottom: 25px;
}

    .form-group label[b-qr9f3d659h] {
        display: block;
        color: #e5e7eb;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }

.input-wrapper[b-qr9f3d659h] {
    position: relative;
}

.input-icon[b-qr9f3d659h] {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper .form-control[b-qr9f3d659h] {
    width: 100%;
    padding: 15px 15px 15px 50px !important;
    border: 2px solid #4b5563 !important; /* Borde gris oscuro */
    border-radius: 12px !important;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #374151 !important; /* Fondo gris oscuro */
    color: #ffffff !important; /* Texto blanco */
}

.input-wrapper .form-control:focus[b-qr9f3d659h] {
    outline: none !important;
    border-color: #dc2626 !important;
    background: #1f2937 !important;
}

.error-message[b-qr9f3d659h] {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake-b-qr9f3d659h 0.5s ease-in-out;
}

.error-icon[b-qr9f3d659h] {
    font-size: 18px;
}

@keyframes shake-b-qr9f3d659h {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.btn-login[b-qr9f3d659h] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

    .btn-login:hover[b-qr9f3d659h] {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }

    .btn-login:active[b-qr9f3d659h] {
        transform: translateY(0);
    }

.login-footer[b-qr9f3d659h] {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

    .login-footer p[b-qr9f3d659h] {
        color: #6b7280;
        font-size: 13px;
        font-weight: 500;
        margin: 0;
    }

@media (max-width: 500px) {
    .login-card[b-qr9f3d659h] {
        padding: 40px 25px;
    }

    .company-name[b-qr9f3d659h] {
        font-size: 24px;
    }

    .logo-container[b-qr9f3d659h] {
        width: 100px;
        height: 100px;
    }
}

/* Barra de carga durante el login */
.login-loading-container[b-qr9f3d659h] {
    margin-bottom: 20px;
    text-align: center;
}

.login-loading-bar[b-qr9f3d659h] {
    width: 100%;
    height: 6px;
    background: #374151;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.login-loading-progress[b-qr9f3d659h] {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    background-size: 200% 100%;
    animation: loadingBar-b-qr9f3d659h 1.5s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes loadingBar-b-qr9f3d659h {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }

    50% {
        width: 70%;
        background-position: 100% 50%;
    }

    100% {
        width: 100%;
        background-position: 0% 50%;
    }
}

.login-loading-text[b-qr9f3d659h] {
    color: #d1d5db;
    font-size: 14px;
    margin: 0;
    animation: pulse-b-qr9f3d659h 1.5s ease-in-out infinite;
}

@keyframes pulse-b-qr9f3d659h {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Deshabilitar botón durante carga */
.btn-login:disabled[b-qr9f3d659h] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
