/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Layout wrapper */
.page-wrapper[b-mhuciyas5e] {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar-wrapper[b-mhuciyas5e] {
    width: 260px;
    display: flex; /* 1. Convertir en contenedor flex */
    flex-direction: column; /* 2. Apilar elementos verticalmente */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030; /* above content */
    transition: width .2s ease, left .25s ease-in-out, transform .25s ease-in-out;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    /* overflow-y se gestionará en el NavMenu ahora */
}

.sidebar-brand[b-mhuciyas5e] {
    height: 4rem;
}

.sidebar-divider[b-mhuciyas5e] {
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Content */
.content-wrapper[b-mhuciyas5e] {
    flex: 1 1 auto;
    margin-left: 260px; /* space for fixed sidebar */
    min-width: 0;
    width: calc(100% - 260px);
    transition: margin-left .25s ease-in-out, width .25s ease-in-out;
}

/* Topbar */
.topbar[b-mhuciyas5e] {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Collapsed desktop sidebar - se oculta completamente */
.sidebar-wrapper:not(.open)[b-mhuciyas5e] {
    transform: translateX(-260px);
}

.content-wrapper.sidebar-collapsed[b-mhuciyas5e] {
    margin-left: 0;
    width: 100%;
}

/* Make nav links readable on sidebar */
.sidebar-wrapper .nav-link[b-mhuciyas5e], .sidebar-wrapper .collapse-item[b-mhuciyas5e], .sidebar-wrapper .sidebar-heading[b-mhuciyas5e] {
    color: #ffffff;
}
.sidebar-wrapper .nav-link:hover[b-mhuciyas5e], .sidebar-wrapper .collapse-item:hover[b-mhuciyas5e] {
    color: #e2e6ea;
}

/* Asegurar que NavMenu ocupe el espacio restante y sea scrollable */
.sidebar-wrapper > .nav-menu-container[b-mhuciyas5e] {
    flex: 1; /* 3. Ocupar todo el espacio vertical disponible */
    min-height: 0; /* Clave para que el overflow funcione en un contenedor flex */
    display: flex; /* Hacer que este contenedor también sea flex */
    overflow-y: auto; /* 4. Añadir scroll si el contenido es muy largo */
    padding: 0.5rem 0;
}

/* Navbar nav styling for sidebar */
.navbar-nav[b-mhuciyas5e] {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    background-color: green;
    width: 100% !important;
}

.nav-item[b-mhuciyas5e] {
    margin-bottom: 0.5rem;
}

.nav-link[b-mhuciyas5e] {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.nav-link:hover[b-mhuciyas5e], .nav-link.active[b-mhuciyas5e] {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i[b-mhuciyas5e] {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Responsive behavior for mobile */
@media (max-width: 991.98px) {
    .sidebar-wrapper[b-mhuciyas5e] {
        transform: translateX(-260px);
    }
    
    .sidebar-wrapper.open[b-mhuciyas5e] {
        transform: translateX(0);
    }
    
    .content-wrapper[b-mhuciyas5e] {
        margin-left: 0;
        width: 100%;
    }
}

/* Desktop behavior - sidebar always visible by default on large screens */
@media (min-width: 992px) {
    /* Cuando el sidebar está abierto (estado inicial en desktop) */
    .sidebar-wrapper.open[b-mhuciyas5e] {
        transform: translateX(0);
    }
    
    /* Cuando el sidebar está cerrado en desktop */
    .sidebar-wrapper:not(.open)[b-mhuciyas5e] {
        transform: translateX(-260px);
    }
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay[b-mhuciyas5e] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1025;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-in-out;
}

.sidebar-overlay.show[b-mhuciyas5e] {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay solo visible en móvil */
@media (min-width: 992px) {
    .sidebar-overlay[b-mhuciyas5e] {
        display: none;
    }
}

#blazor-error-ui[b-mhuciyas5e] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-mhuciyas5e] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-vx0717tdow] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-vx0717tdow] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-vx0717tdow] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

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

/* Navbar nav styling for sidebar */
.navbar-nav[b-vx0717tdow] {
    
    width: 100% !important;
}

.bi[b-vx0717tdow] {
    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-vx0717tdow] {
    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-vx0717tdow] {
    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-vx0717tdow] {
    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-vx0717tdow] {
    font-size: 0.9rem;
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 0.5rem;
}

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

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

    .nav-item[b-vx0717tdow]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-vx0717tdow]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-vx0717tdow]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-vx0717tdow] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-vx0717tdow] {
    display: block;
}

i[b-vx0717tdow] {
    margin-right: 10px !important;
}
@media (min-width: 641px) {
    .navbar-toggler[b-vx0717tdow] {
        display: none;
    }

    .nav-scrollable[b-vx0717tdow] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/TopBar.razor.rz.scp.css */
/* TopBar Component Styles */

/* Topbar navigation items */
.navbar-nav .nav-link[b-j9cwcm6mhl] {
    color: #6c757d;
    position: relative;
}

.navbar-nav .nav-link:hover[b-j9cwcm6mhl] {
    color: #495057;
}

.navbar-nav .dropdown-toggle[b-j9cwcm6mhl]::after {
    display: none;
}

/* Badge counter for notifications */
.badge-counter[b-j9cwcm6mhl] {
    position: absolute;
    top: -2px;
    right: -6px;
    font-size: 0.625rem;
    min-width: 1rem;
    height: 1rem;
    line-height: 1rem;
    padding: 0 0.25rem;
    border-radius: 10rem;
}

.badge-danger[b-j9cwcm6mhl] {
    background-color: #dc3545;
    color: white;
}

/* Topbar divider */
.topbar-divider[b-j9cwcm6mhl] {
    width: 0;
    border-right: 1px solid #e3e6f0;
    height: calc(4.375rem - 2rem);
    margin: auto 1rem;
}

/* User profile image */
.img-profile[b-j9cwcm6mhl] {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
}

/* Dropdown styles */
.dropdown-list[b-j9cwcm6mhl] {
    width: 20rem;
    max-height: 25rem;
    overflow-y: auto;
}

.dropdown-list .dropdown-header[b-j9cwcm6mhl] {
    background-color: #1b6ec2;
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.dropdown-list .dropdown-item[b-j9cwcm6mhl] {
    white-space: normal;
    padding: 0.75rem 1rem;
    border-left: 0.25rem solid transparent;
}

.dropdown-list .dropdown-item:hover[b-j9cwcm6mhl] {
    background-color: #f8f9fc;
    border-left-color: #1b6ec2;
}

.dropdown-list .dropdown-item:active[b-j9cwcm6mhl] {
    background-color: #eaecf4;
    color: #3a3b45;
}

/* Icon circles for notifications */
.icon-circle[b-j9cwcm6mhl] {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown list image (user avatars in messages) */
.dropdown-list-image[b-j9cwcm6mhl] {
    position: relative;
}

.dropdown-list-image img[b-j9cwcm6mhl] {
    width: 2.5rem;
    height: 2.5rem;
}

/* Status indicator for online/offline */
.status-indicator[b-j9cwcm6mhl] {
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #858796;
    border: 2px solid white;
    bottom: 0;
    right: 0;
}

.status-indicator.bg-success[b-j9cwcm6mhl] {
    background-color: #28a745;
}

/* Text utilities */
.text-gray-300[b-j9cwcm6mhl] {
    color: #dddfeb !important;
}

.text-gray-400[b-j9cwcm6mhl] {
    color: #d1d3e2 !important;
}

.text-gray-500[b-j9cwcm6mhl] {
    color: #858796 !important;
}

.text-gray-600[b-j9cwcm6mhl] {
    color: #6c757d !important;
}

.text-gray-800[b-j9cwcm6mhl] {
    color: #5a5c69 !important;
}

.text-truncate[b-j9cwcm6mhl] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown animations */
.animated--grow-in[b-j9cwcm6mhl] {
    animation-name: growIn-b-j9cwcm6mhl;
    animation-duration: 200ms;
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}

@keyframes growIn-b-j9cwcm6mhl {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navbar search form */
.navbar-search[b-j9cwcm6mhl] {
    width: auto;
    max-width: 25rem;
}

.navbar-search .input-group[b-j9cwcm6mhl] {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-search input[b-j9cwcm6mhl] {
    border: none;
}

/* Make dropdowns appear on the right */
.dropdown-menu-right[b-j9cwcm6mhl] {
    right: 0;
    left: auto;
}

/* No arrow on dropdown */
.no-arrow[b-j9cwcm6mhl]::after {
    display: none;
}

/* Font weights */
.font-weight-bold[b-j9cwcm6mhl] {
    font-weight: 700 !important;
}

/* Small text */
.small[b-j9cwcm6mhl] {
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-search[b-j9cwcm6mhl] {
        width: 100%;
    }
    
    .dropdown-list[b-j9cwcm6mhl] {
        width: 100%;
    }
}

