/* ====== PAGE LAYERS ====== */
:where(body[class^="page-"], body[class*=" page-"]) .main-content {
    padding: var(--spacing-xxl) 5%;
    min-height: calc(100vh - 160px);
}

:where(body[class^="page-"], body[class*=" page-"]) .page {
    display: none;
}

:where(body[class^="page-"], body[class*=" page-"]) .page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:where(body[class^="page-"], body[class*=" page-"]) .main-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

:where(body[class^="page-"], body[class*=" page-"]) .sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

:where(body[class^="page-"], body[class*=" page-"]) .content {
    flex: 1;
    min-width: 0;
}

:where(body[class^="page-"], body[class*=" page-"]) .content-section {
    display: none;
}

:where(body[class^="page-"], body[class*=" page-"]) .content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@media (max-width: 992px) {
    :where(body[class^="page-"], body[class*=" page-"]) .main-container {
        flex-direction: column;
    }
}
