
/* =========================
   STUDENT HUB - MAIN THEME
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #080808;
    --surface: #111111;
    --surface-light: #181818;
    --border: #292929;
    --text: #ffffff;
    --muted: #999999;
    --glow: rgba(255, 255, 255, 0.12);
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 5%;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 12, 12, 0.96);
    position: relative;
    flex-wrap: wrap;
}

header h2 {
    font-size: 25px;
    letter-spacing: 1px;
    text-shadow: 0 0 12px white;
    white-space: nowrap;
}

header > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

#studentName {
    color: #cccccc;
    font-size: 14px;
}

/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s ease;
}

nav a:hover {
    color: white;
    text-shadow: 0 0 10px white;
}

/* =========================
   BUTTONS
========================= */

button {
    background: white;
    color: black;
    border: 1px solid white;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
}

button:hover {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#logoutButton {
    background: transparent;
    color: white;
    border: 1px solid #444;
}

#logoutButton:hover {
    background: white;
    color: black;
}

/* =========================
   MAIN CONTENT
========================= */

main {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 55px 5%;
}

/* =========================
   WELCOME SECTION
========================= */

.welcome {
    text-align: center;
    padding: 90px 25px;
    background:
        radial-gradient(
            ellipse at top,
            rgba(255, 255, 255, 0.09),
            transparent 65%
        ),
        linear-gradient(145deg, #171717, #080808);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.04);
}

.welcome h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.welcome p {
    color: #aaaaaa;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.welcome a {
    display: inline-block;
    margin: 6px;
    text-decoration: none;
}

/* =========================
   FEATURE CARDS
========================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(145deg, #151515, #0d0d0d);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: 0.3s ease;
}

.feature-card:hover {
    border-color: #777777;
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-5px);
}

.feature-card h2 {
    font-size: 21px;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-card a {
    text-decoration: none;
}

/* =========================
   LINKS AND FOCUS
========================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* =========================
   TABLETS
========================= */

@media (max-width: 1050px) {
    header {
        justify-content: center;
        text-align: center;
    }

    nav {
        width: 100%;
    }

    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {
    header {
        padding: 20px 5%;
    }

    header h2 {
        width: 100%;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 13px;
    }

    header > div {
        justify-content: center;
        width: 100%;
    }

    main {
        padding: 30px 5%;
    }

    .welcome {
        padding: 60px 18px;
    }

    .welcome p {
        font-size: 16px;
    }

    .welcome a {
        display: block;
        margin: 12px 0;
    }

    .welcome button {
        width: 100%;
        max-width: 280px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 25px;
    }

    .feature-card {
        padding: 26px;
    }
}

/* =========================
   NEW DASHBOARD LAYOUT
========================= */

.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.dashboard-sidebar {
    width: 250px;
    min-width: 250px;
    min-height: 100vh;
    background: #0c0c0c;
    border-right: 1px solid #292929;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 0 12px 30px;
    border-bottom: 1px solid #252525;
}

.sidebar-brand h2 {
    font-size: 24px;
    letter-spacing: 1px;
    text-shadow: 0 0 12px #ffffff70;
}

.sidebar-brand h2 span {
    color: #999;
}

.sidebar-brand p,
.sidebar-bottom p {
    color: #777;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 25px;
}

.sidebar-nav .nav-heading {
    color: #666;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin: 20px 10px 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #999;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.25s;
}

.sidebar-nav a span {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: white;
    background: #202020;
    box-shadow: inset 2px 0 white;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 25px 12px 0;
    border-top: 1px solid #252525;
}

.sidebar-bottom span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 8px;
}

/* MAIN CONTENT */

.dashboard-content {
    flex: 1;
    min-width: 0;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 4%;
    background: #0c0c0c;
    border-bottom: 1px solid #292929;
}

.dashboard-topbar h2 {
    font-size: 21px;
}

.dashboard-topbar p {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.topbar-account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-account span {
    color: #bbb;
    font-size: 13px;
}

/* DASHBOARD MAIN */

.dashboard-main {
    max-width: 1500px;
    margin: auto;
    padding: 40px 4%;
}

/* WELCOME PANEL */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 260px;
    padding: 45px;
    border: 1px solid #303030;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 50%, #ffffff12, transparent 35%),
        linear-gradient(135deg, #191919, #090909);
    box-shadow: 0 0 35px #ffffff08;
}

.welcome-label {
    color: #aaa;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.dashboard-welcome h1 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
    margin-bottom: 15px;
}

.dashboard-welcome h1 span {
    color: #999;
}

.welcome-description {
    max-width: 550px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 25px;
}

.primary-link {
    display: inline-block;
    background: white;
    color: black;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.25s;
}

.primary-link:hover {
    box-shadow: 0 0 20px #ffffff70;
    transform: translateY(-2px);
}

.welcome-decoration {
    width: 150px;
    height: 150px;
    min-width: 150px;
    display: grid;
    place-items: center;
    border: 1px solid #555;
    border-radius: 35px;
    transform: rotate(8deg);
    box-shadow: 0 0 40px #ffffff15;
}

.welcome-decoration span {
    font-size: 45px;
    font-weight: bold;
    text-shadow: 0 0 20px white;
}

/* FEATURE GRID */

.dashboard-section {
    margin-top: 45px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 23px;
}

.section-heading p {
    color: #888;
    font-size: 13px;
    margin-top: 7px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
    padding: 25px;
    background: linear-gradient(145deg, #151515, #0d0d0d);
    border: 1px solid #292929;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    transition: 0.25s ease;
}

.dashboard-card:hover {
    border-color: #888;
    box-shadow: 0 0 22px #ffffff15;
    transform: translateY(-4px);
}

.card-icon {
    font-size: 23px;
    margin-bottom: 17px;
    text-shadow: 0 0 12px white;
}

.dashboard-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.dashboard-card p {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.card-link {
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-top: auto;
}

/* FOOTER */

.dashboard-footer {
    margin-top: 45px;
    padding: 20px 0;
    border-top: 1px solid #292929;
    color: #666;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-sidebar {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #292929;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-nav .nav-heading {
        grid-column: 1 / -1;
    }

    .sidebar-bottom {
        display: none;
    }

    .dashboard-topbar {
        gap: 15px;
        flex-wrap: wrap;
    }

    .dashboard-main {
        padding: 25px 5%;
    }

    .dashboard-welcome {
        padding: 30px 22px;
    }

    .welcome-decoration {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .topbar-account {
        width: 100%;
        justify-content: space-between;
    }
}
