.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f1629 0%, #1a0a2e 100%);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth);
}

.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content {
    padding: 1.5rem 2rem;
    max-width: 100%;
}

/* === Error UI === */
#blazor-error-ui {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    bottom: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

    #blazor-error-ui .reload {
        color: var(--accent-secondary);
        margin-left: 0.5rem;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .sidebar {
        transform: none;
        width: 100%;
        height: auto;
        min-height: 0;
        position: sticky;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .page {
        display: block;
    }

    .main-area {
        margin-left: 0;
    }

    .content {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content {
        padding: 1.25rem 1.5rem;
    }
}
