:root {
    /* Core Palette */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --text-white: rgba(255, 255, 255, 0.95);
    --text-dim: rgba(255, 255, 255, 0.6);
    
    /* Gradients */
    --accent-grad: linear-gradient(135deg, #7000ff 0%, #00c6fb 100%);
    --class-1: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
    --class-2: linear-gradient(135deg, #FF4D4D 0%, #F9CB28 100%);
    --class-3: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    --class-4: linear-gradient(135deg, #42e695 0%, #3bb2b8 100%);
}



* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: #0f0f11;
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    /* Allow scrolling on body for content pages */
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; }

/* === BACKGROUND ORBS === */
.orb-container {
    position: fixed; /* Fixed so they don't scroll away */
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 12s infinite ease-in-out alternate;
}

.o1 { width: 500px; height: 500px; background: #4a00e0; top: -150px; left: -100px; }
.o2 { width: 300px; height: 300px; background: #8e2de2; bottom: -50px; right: -50px; animation-delay: -5s; }
.o3 { width: 150px; height: 150px; background: #00c6fb; top: 30%; left: 40%; animation-duration: 18s; opacity: 0.3; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 60px); }
}

/* === SHARED GLASS COMPONENTS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.glass-panel:hover { 
    transform: translateY(-4px); 
    background: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.25); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* === LAYOUT GRID === */
.dashboard-container {
    position: relative;
    z-index: 10;
    width: 1200px;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 40px 20px;
}

/* === SIDEBAR (Injected via JS) === */
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 80px); /* Sticky height */
    position: sticky;
    top: 40px;
}

.logo {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px;
}
.logo i { font-size: 1.8rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 6px; border-radius: 12px; color: var(--text-dim); text-decoration: none; transition: 0.2s; font-weight: 500; font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, 0.1); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }

.office-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-radius: 16px; padding: 20px; text-align: left; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; margin-top: auto;
}
.office-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.2), transparent 60%); animation: rotate 20s linear infinite; z-index: 0; }
.office-content { position: relative; z-index: 1; }
.office-card h4 { margin: 0 0 5px 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.office-card p { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.4; }

/* === MAIN CONTENT AREA === */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.top-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 24px;
}

.profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid rgba(255,255,255,0.2); }

.hero-section h2 { margin: 0 0 5px 0; font-size: 2rem; }
.hero-section p { margin: 0; color: var(--text-dim); font-size: 1.1rem; }

/* === CLASSES GRID === */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.class-card {
    position: relative; overflow: hidden; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
}
.class-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; animation: rotate 15s linear infinite; z-index: 0; opacity: 0.2; }

.c-1::before { background: radial-gradient(circle at 50% 50%, #FF0080, transparent 60%); }
.c-2::before { background: radial-gradient(circle at 50% 50%, #FF4D4D, transparent 60%); }
.c-3::before { background: radial-gradient(circle at 50% 50%, #00c6fb, transparent 60%); }
.c-4::before { background: radial-gradient(circle at 50% 50%, #42e695, transparent 60%); }

.card-inner { position: relative; z-index: 1; }
.class-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 15px; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.ci-1 { background: var(--class-1); }
.ci-2 { background: var(--class-2); }
.ci-3 { background: var(--class-3); }
.ci-4 { background: var(--class-4); }

.class-code { font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; }
.class-link-text { font-size: 0.9rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }

/* === CONTENT PAGE LAYOUT (Reading) === */
.reading-panel {
    background: rgba(20, 20, 25, 0.6); /* Slightly darker for readability */
    backdrop-filter: blur(40px);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 900px;
}

.reading-panel h1 { font-size: 2.5rem; margin-bottom: 10px; background: linear-gradient(to right, white, rgba(255,255,255,0.5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reading-panel h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; color: #00c6fb; display: flex; align-items: center; gap: 10px; }
.reading-panel h2::before { content: ""; width: 6px; height: 24px; background: #00c6fb; border-radius: 4px; display: block; }

.reading-panel p, .reading-panel ul { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.reading-panel strong { color: white; }

/* Callout Box for Content Pages */
.callout-box {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #7000ff;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 900px) {
    .dashboard-container { grid-template-columns: 1fr; width: 100%; padding: 10px; }
    .sidebar { display: none; } /* In real implementation, you'd want a hamburger menu */
    .classes-grid { grid-template-columns: 1fr; }
}