/* ================================================================
   StudentCheck – Variables & Base
   Style inspiré : Online School Dashboard (Dribbble)
   ================================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sidebar */
    --sidebar-width: 270px;
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(124, 92, 252, 0.25);
    --sidebar-active-text: #a78bfa;
    --sidebar-text: rgba(255, 255, 255, 0.55);
    --sidebar-text-hover: #fff;
    --sidebar-border: rgba(255, 255, 255, 0.06);

    /* Colors */
    --primary: #7c5cfc;
    --primary-light: #ede9fe;
    --primary-dark: #5b3fd4;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --accent: #ec4899;
    --accent-light: #fce7f3;

    /* Surfaces */
    --bg-body: #f5f6fa;
    --bg-card: #ffffff;
    --bg-topbar: #ffffff;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Borders & Shadows */
    --border-color: #f0f0f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
}

/* ── Reset & Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Page Loader ── */
#pageLoader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#pageLoader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-dots {
    display: flex;
    gap: 10px;
}
.loader-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    animation: loaderBounce 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(1) {
    animation-delay: 0s;
    background: #7c5cfc;
}
.loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
    background: #a78bfa;
}
.loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
    background: #ec4899;
}
.loader-dots span:nth-child(4) {
    animation-delay: 0.45s;
    background: #f59e0b;
}

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loader-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
