/* /Components/Layout/PortalLayout.razor.rz.scp.css */
/* =========================================================
   Portal Layout - BEM Convention
   ========================================================= */

.portal[b-2uupfkhnz9] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f3f4f6;
}

/* Header */
.portal__header[b-2uupfkhnz9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1.5rem;
    background: #1e293b;
    color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 200;
}

.portal__header-left[b-2uupfkhnz9] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal__header-right[b-2uupfkhnz9] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal__brand[b-2uupfkhnz9] {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
}

.portal__brand:hover[b-2uupfkhnz9] {
    color: #e2e8f0;
}

.portal__user-name[b-2uupfkhnz9] {
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 500;
}

.portal__logout-btn[b-2uupfkhnz9] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.portal__logout-btn:hover[b-2uupfkhnz9] {
    background: rgba(255, 255, 255, 0.2);
}

.portal__sidebar-toggle[b-2uupfkhnz9] {
    display: none;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* Body */
.portal__body[b-2uupfkhnz9] {
    display: flex;
    flex: 1;
}

/* Sidebar */
.portal__sidebar[b-2uupfkhnz9] {
    width: 16rem;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 3.5rem);
    position: sticky;
    top: 3.5rem;
    align-self: flex-start;
    overflow-y: auto;
}

.portal__nav[b-2uupfkhnz9] {
    padding: 1rem 0;
}

.portal__nav-section[b-2uupfkhnz9] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.portal__nav-section-title[b-2uupfkhnz9] {
    display: block;
    padding: 0.375rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.portal__nav-item[b-2uupfkhnz9] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.portal__nav-item:hover[b-2uupfkhnz9] {
    background: #f3f4f6;
    color: #4f46e5;
}

.portal__nav-item--sub[b-2uupfkhnz9] {
    padding-left: 2.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
}

.portal__nav-item--back[b-2uupfkhnz9] {
    color: #6b7280;
    font-size: 0.8125rem;
}

.portal__nav-item--back:hover[b-2uupfkhnz9] {
    color: #374151;
}

.portal__nav-icon[b-2uupfkhnz9] {
    font-size: 0.625rem;
    line-height: 1;
    color: #9ca3af;
}

.portal__nav-item:hover .portal__nav-icon[b-2uupfkhnz9] {
    color: #4f46e5;
}

.portal__sidebar-footer[b-2uupfkhnz9] {
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
}

/* Overlay (mobile) */
.portal__overlay[b-2uupfkhnz9] {
    display: none;
}

/* Content */
.portal__content[b-2uupfkhnz9] {
    flex: 1;
    padding: 1.5rem 2rem;
    min-width: 0;
}

/* Loading */
.portal__loading[b-2uupfkhnz9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

.portal__spinner[b-2uupfkhnz9] {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: portalSpin-b-2uupfkhnz9 0.7s linear infinite;
}

@keyframes portalSpin-b-2uupfkhnz9 {
    to { transform: rotate(360deg); }
}

/* =========================================================
   Responsive: Mobile (<768px)
   ========================================================= */

@media (max-width: 768px) {
    .portal__sidebar-toggle[b-2uupfkhnz9] {
        display: block;
    }

    .portal__sidebar[b-2uupfkhnz9] {
        position: fixed;
        top: 3.5rem;
        left: 0;
        bottom: 0;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        min-height: auto;
    }

    .portal__sidebar--open[b-2uupfkhnz9] {
        transform: translateX(0);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
    }

    .portal__overlay[b-2uupfkhnz9] {
        display: block;
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 140;
    }

    .portal__content[b-2uupfkhnz9] {
        padding: 1rem;
    }
}
