/* STEMAura Student Dashboard — Base CSS (Admin Theme Unified) */
@import url('/css/admin.css');
@import url('/icons/css/all.min.css');

:root, [data-theme="dark"] {
    --bg-darker: #09090b;
    --bg-dark: #121217;
    --bg-panel: #18181b;
    --bg-hover: #27272a;
    --bg-glass: rgba(24, 24, 27, 0.85);

    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-surface-2: #27272a;
    --color-primary: #6366f1;
    --color-primary-glow: rgba(99, 102, 241, 0.2);
    --color-accent: #6366f1;
    --color-accent-glow: rgba(99, 102, 241, 0.15);
    --color-text: #fafafa;
    --color-text-muted: #a1a1aa;
    --color-border: #27272a;
    --color-glass: #18181b;
    --color-glass-border: #27272a;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #a1a1aa;

    --border-color: #27272a;
    --border-hover: #3f3f46;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    --font-family: 'Inter', system-ui, sans-serif;
    --font-size-base: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --anim-speed: 0.25s;
    --anim-easing: ease;

    --shadow-subtle: var(--shadow);
    --shadow-glow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

[data-theme="light"] {
    --bg-darker: #f8fafc;
    --bg-dark: #ffffff;
    --bg-panel: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-2: #f1f5f9;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-glass: #ffffff;
    --color-glass-border: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Global Layout & Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.admin-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    flex: 1 1 auto;
    min-height: 100vh;
    padding: 1.5rem 2rem 3rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }
}
