:root {
    --bg-dark: #0f0424;
    --accent-purple: #4b0082;
    --magenta-glow: #ff00ff;
    --glass: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
}

* { box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }

body {
    margin: 0;
    background: radial-gradient(circle at top right, #1a063d, #0f0424);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- PAGES --- */
.page { display: none; width: 100%; flex-direction: column; }

/* --- HEADER --- */
header {
    background: rgba(15, 4, 36, 0.95);
    padding: 12px 25px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
}

.user-profile-icon {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid var(--magenta-glow);
    cursor: pointer; object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

/* --- DASHBOARD ELEMENTS --- */
.stats-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0;
}
.stat-card {
    background: var(--glass); padding: 15px; border-radius: 12px;
    text-align: center; border: 1px solid rgba(255,255,255,0.05);
}
.stat-card h4 { margin: 0; font-size: 0.7rem; color: #aaa; text-transform: uppercase; }
.stat-card p { margin: 5px 0 0; font-size: 1.2rem; font-weight: bold; color: var(--magenta-glow); }

/* --- SIDEBAR --- */
.sidebar {
    height: 100%; width: 0; position: fixed; z-index: 1100;
    top: 0; left: 0; background: #0a021a;
    overflow-x: hidden; transition: 0.3s; padding-top: 60px;
    border-right: 1px solid var(--accent-purple);
}
.sidebar a {
    padding: 15px 25px; text-decoration: none; font-size: 16px;
    color: #ccc; display: block; transition: 0.2s;
}
.sidebar a:hover { background: var(--accent-purple); color: white; }

/* --- LISTS & CHAT --- */
.student-card {
    background: var(--glass); margin-bottom: 12px; padding: 15px;
    border-radius: 10px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; border-left: 4px solid var(--accent-purple);
}
.chat-box {
    height: 300px; overflow-y: auto; background: rgba(0,0,0,0.3);
    padding: 15px; border-radius: 10px; margin: 15px 0;
}
.msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; max-width: 80%; }
.msg.sent { background: var(--accent-purple); align-self: flex-end; margin-left: auto; }
.msg.received { background: rgba(255,255,255,0.1); }

/* --- PROFILE --- */
.profile-box {
    background: var(--glass); padding: 30px; border-radius: 15px;
    max-width: 450px; margin: 30px auto; text-align: center;
}
.profile-img-big {
    width: 120px; height: 120px; border-radius: 50%;
    border: 3px solid white; margin-bottom: 15px; cursor: pointer; object-fit: cover;
}

input, textarea, select {
    width: 100%; padding: 12px; margin-top: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: white;
}
option { background: #1a063d; color: white; }
button.primary {
    background: white; color: black; border: none; padding: 14px;
    border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 15px;
}