/* Edu Tawjihi skin for the Filament admin and teacher panels. Loaded through a HEAD_END render hook (no Vite build needed). */
:root {
    --font-family: 'Inter', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif !important;
    --em-radius-card: 0.75rem;
    --em-radius-input: 0.625rem;
    --em-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --em-shadow-raised: 0 10px 30px -12px rgba(49, 46, 129, 0.35);
}

body, .fi-body { font-family: var(--font-family); }

.fi-body:not(.dark .fi-body) { background-color: #f8fafc; }

/* Sidebar */
.fi-sidebar { border-inline-end: 1px solid #e2e8f0; }
.dark .fi-sidebar { border-color: rgba(255, 255, 255, 0.06); }
.fi-sidebar-item-btn { border-radius: var(--em-radius-input); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--primary-50);
    box-shadow: inset 3px 0 0 var(--primary-600);
}
[dir='rtl'] .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { box-shadow: inset -3px 0 0 var(--primary-600); }
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: rgba(99, 102, 241, 0.15); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--primary-700); font-weight: 600; }
.dark .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--primary-300); }

/* Surfaces */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-tabs,
.fi-in-tabs {
    border-radius: var(--em-radius-card) !important;
    box-shadow: var(--em-shadow-card);
}
.fi-modal-window { border-radius: 1rem !important; }
.fi-dropdown-panel { border-radius: var(--em-radius-card) !important; box-shadow: var(--em-shadow-raised) !important; }

/* Controls */
.fi-btn { border-radius: var(--em-radius-input) !important; font-weight: 600; }
.fi-input-wrp { border-radius: var(--em-radius-input) !important; }
.fi-badge { border-radius: 999px !important; }

.fi-header-heading { letter-spacing: -0.02em; font-weight: 700; }

/* Auth pages: branded split layout */
.em-auth-aside { display: none; }

@media (min-width: 1024px) {
    .fi-simple-layout:has(.em-auth-aside) {
        flex-direction: row;
        align-items: stretch;
        min-height: 100vh;
        padding: 1.25rem;
        gap: 1.25rem;
        background:
            radial-gradient(50rem 26rem at 90% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
            #f8fafc;
    }
    .dark .fi-simple-layout:has(.em-auth-aside) { background: #0b1120; }

    .em-auth-aside {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 44%;
        max-width: 40rem;
        padding: 3rem;
        overflow: hidden;
        border-radius: 1.75rem;
        color: #fff;
        background: linear-gradient(135deg, #4f46e5, #312e81);
        box-shadow: var(--em-shadow-raised);
    }
    .em-auth-aside::after {
        content: '';
        position: absolute;
        inset-inline-end: -6rem;
        top: -6rem;
        width: 20rem;
        height: 20rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        filter: blur(30px);
    }
    .em-auth-aside-logo { position: relative; height: 2.5rem; width: auto; align-self: flex-start; }
    .em-auth-aside-body { position: relative; margin-top: auto; }
    .em-auth-aside-glyph { width: 6rem; height: 6rem; margin-bottom: 1.5rem; opacity: 0.9; }
    .em-auth-aside-title { font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
    .em-auth-aside-text { margin-top: 0.75rem; max-width: 28rem; line-height: 1.75; color: #e0e7ff; }

    .fi-simple-layout:has(.em-auth-aside) .fi-simple-main-ctn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.fi-simple-main {
    border-radius: 1.5rem !important;
    box-shadow: var(--em-shadow-raised) !important;
}
