/* Shared layout styles */
@media (min-width: 1024px) {
    .with-sidebar {
        margin-left: 240px;
        /* width of the sidebar */
        padding: 1rem 1rem;
    }
}

body {
    background: var(--theme-clr-5);
}

.page-wrapper {
    flex: 1;
    padding-top: calc(var(--header-height) + var(--subheader-height));
    padding-inline: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* === DESKTOP === */
@media (min-width: 1024px) {
    .with-sidebar.grid-layout {
        display: grid;
        grid-template-columns: minmax(320px, 400px) minmax(360px, 1fr);
        gap: 2rem;
        padding: 2rem;
        margin-left: 240px;
        /* to account for fixed nav */
    }
}





/* === GLOBAL STYLE LANG-BTNs === */
.language-switcher {
    display: flex;
    gap: 1rem;
}

.language-switcher .lang-btn {
    position: relative;
    display: inline-block;
    border-radius: 50%;
}

.language-switcher .lang-btn img {
    width: 45px;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
}

/* Pulse element (injected dynamically) */
.lang-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background: white;
    opacity: 0.4;
    border-radius: 50%;
    transform: scale(1);
    pointer-events: none;
    animation: lang-click-pulse 0.6s ease-out forwards;
    z-index: 0;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

@keyframes lang-click-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}




/* === GLOBAL RTL === */
/* === GLOBAL RTL via class === */
.lang-ar {
    font-family: 'Cairo', sans-serif;
}

.lang-ar :is(h1, h2, h3, h4, h5, h6, p, label, span, li, td, th) {
    direction: rtl;
    text-align: right;
}