/* =========================================================
   TALENTBRIDGE — STUDENT DASHBOARD
   SAME COLOR SYSTEM AS INDEX.PHP
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C6CFF;
    --primary-dark: #6254E8;
    --primary-light: rgba(124,108,255,0.10);

    --secondary: #14B8A6;

    --dark: #F8FAFC;
    --text: #CBD5E1;
    --muted: #64748B;

    --background: #080B14;
    --surface: #0D111C;
    --card: #111827;

    --border: rgba(255,255,255,0.07);

    --shadow:
        0 20px 50px rgba(0,0,0,0.22);
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: Arial, sans-serif;

    background: var(--background);

    color: var(--text);

    min-height: 100vh;
}

a {
    text-decoration: none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    left: 0;
    top: 0;

    width: 245px;
    height: 100vh;

    padding: 30px 17px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(124,108,255,0.10),
            transparent 30%
        ),
        #0D111C;

    border-right: 1px solid var(--border);

    box-shadow:
        15px 0 45px rgba(0,0,0,0.12);

    z-index: 1000;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    padding: 0 15px 38px;

    color: #F8FAFC;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: -1.2px;
}

.brand span {
    color: #8B7FFF;
}


/* =========================================================
   MENU TITLE
   ========================================================= */

.menu-title {
    padding: 0 15px;

    margin-bottom: 12px;

    color: #475569;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.8px;
}


/* =========================================================
   MENU
   ========================================================= */

.menu {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.menu a {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 15px;

    border: 1px solid transparent;

    border-radius: 11px;

    color: #64748B;

    font-size: 12px;
    font-weight: 700;

    transition: 0.25s ease;
}

.menu a .menu-icon {
    width: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #64748B;

    font-size: 16px;

    transition: 0.25s ease;
}

.menu a:hover {
    color: #E2E8F0;

    background:
        rgba(124,108,255,0.07);

    border-color:
        rgba(124,108,255,0.08);

    transform: translateX(3px);
}

.menu a:hover .menu-icon {
    color: #A78BFA;
}

.menu a.active {
    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            rgba(124,108,255,0.95),
            rgba(98,84,232,0.95)
        );

    border-color:
        rgba(167,139,250,0.18);

    box-shadow:
        0 10px 25px rgba(98,84,232,0.20);
}

.menu a.active .menu-icon {
    color: #FFFFFF;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,0.06);
}


/* =========================================================
   STUDENT MINI
   ========================================================= */

.student-mini {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 12px;

    margin-bottom: 10px;
}


/* =========================================================
   AVATAR
   ========================================================= */

.avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #8B7FFF,
            #6254E8
        );

    color: #FFFFFF;

    font-size: 14px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(98,84,232,0.22);
}


/* =========================================================
   STUDENT INFO
   ========================================================= */

.student-mini strong {
    display: block;

    max-width: 130px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #E2E8F0;

    font-size: 11px;
}

.student-mini span {
    display: block;

    margin-top: 3px;

    color: #475569;

    font-size: 9px;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.logout {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 15px;

    border-radius: 10px;

    color: #64748B;

    font-size: 11px;
    font-weight: 800;

    transition: 0.25s ease;
}

.logout:hover {
    color: #FCA5A5;

    background:
        rgba(239,68,68,0.07);
}


/* =========================================================
   MAIN
   ========================================================= */

.main {
    margin-left: 245px;

    min-height: 100vh;

    padding: 0 45px 60px;

    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(124,108,255,0.045),
            transparent 25%
        ),
        #080B14;

    color: #CBD5E1;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,0.06);

    margin-bottom: 38px;
}


/* =========================================================
   TOPBAR LEFT
   ========================================================= */

.topbar-left h2 {
    color: #F8FAFC;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.5px;

    margin-bottom: 4px;
}

.topbar-left p {
    color: #64748B;

    font-size: 10px;
}


/* =========================================================
   TOPBAR RIGHT
   ========================================================= */

.topbar-right {
    display: flex;
    align-items: center;

    gap: 12px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification {
    position: relative;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 12px;

    background:
        rgba(17,24,39,0.75);

    color: #94A3B8;

    font-size: 16px;

    transition: 0.25s ease;
}

.notification:hover {
    color: #A78BFA;

    border-color:
        rgba(124,108,255,0.20);

    background:
        rgba(124,108,255,0.07);
}

.notification::after {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    top: 8px;
    right: 8px;

    border:
        2px solid #111827;

    border-radius: 50%;

    background: #8B7FFF;
}


/* =========================================================
   TOP AVATAR
   ========================================================= */

.top-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #7C6CFF,
            #6254E8
        );

    color: #FFFFFF;

    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(98,84,232,0.20);
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    position: relative;

    overflow: hidden;

    min-height: 235px;

    padding: 38px 42px;

    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            #6254E8 0%,
            #7C6CFF 48%,
            #4E9CF5 100%
        );

    box-shadow:
        0 20px 50px rgba(91,84,232,0.22);

    color: white;

    margin-bottom: 28px;
}


/* =========================================================
   WELCOME DECORATIONS
   ========================================================= */

.welcome::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,0.10);

    right: -100px;

    top: -170px;
}

.welcome::after {
    content: "";

    position: absolute;

    width: 200px;
    height: 200px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.06);

    right: 160px;

    bottom: -130px;
}


/* =========================================================
   WELCOME CONTENT
   ========================================================= */

.welcome-content {
    position: relative;

    z-index: 2;

    max-width: 700px;
}


/* =========================================================
   WELCOME LABEL
   ========================================================= */

.welcome-label {
    display: inline-flex;

    padding: 7px 12px;

    background:
        rgba(255,255,255,0.13);

    border:
        1px solid rgba(255,255,255,0.15);

    border-radius: 30px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;

    margin-bottom: 17px;
}


/* =========================================================
   WELCOME TITLE
   ========================================================= */

.welcome h1 {
    font-size: 34px;

    line-height: 1.2;

    letter-spacing: -1px;

    margin-bottom: 12px;
}

.welcome h1 span {
    color: #DDD9FF;
}


/* =========================================================
   WELCOME DESCRIPTION
   ========================================================= */

.welcome p {
    color:
        rgba(255,255,255,0.78);

    font-size: 13px;

    line-height: 1.8;

    max-width: 610px;
}


/* =========================================================
   WELCOME BUTTON
   ========================================================= */

.welcome-action {
    position: absolute;

    right: 40px;

    bottom: 35px;

    z-index: 3;

    padding: 12px 18px;

    border-radius: 10px;

    background: #FFFFFF;

    color: #6254E8;

    font-size: 12px;
    font-weight: 800;

    transition: 0.25s ease;
}

.welcome-action:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 35px 0 18px;
}

.section-title h2 {
    color: #F8FAFC;

    font-size: 19px;

    letter-spacing: -0.4px;
}

.section-title p {
    color: #64748B;

    font-size: 11px;

    margin-top: 3px;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.view-all {
    color: #A78BFA;

    font-size: 12px;
    font-weight: 800;

    transition: 0.2s ease;
}

.view-all:hover {
    color: #C4B5FD;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


/* =========================================================
   STAT CARD
   ========================================================= */

.stat {
    background:
        linear-gradient(
            145deg,
            rgba(17,24,39,0.96),
            rgba(13,17,28,0.96)
        );

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 18px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 15px;

    transition: 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);

    border-color:
        rgba(124,108,255,0.18);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.20);
}


/* =========================================================
   STAT ICON
   ========================================================= */

.stat-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    border:
        1px solid rgba(255,255,255,0.05);
}


/* =========================================================
   STAT COLORS
   ========================================================= */

.purple {
    background:
        rgba(124,108,255,0.10);
}

.blue {
    background:
        rgba(59,130,246,0.10);
}

.green {
    background:
        rgba(20,184,166,0.10);
}


/* =========================================================
   STAT TEXT
   ========================================================= */

.stat h3 {
    color: #F8FAFC;

    font-size: 17px;

    margin-bottom: 4px;
}

.stat p {
    color: #64748B;

    font-size: 10px;
}


/* =========================================================
   WORKSPACE CARDS
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #111827,
            #0D111C
        );

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 19px;

    padding: 25px;

    transition: 0.3s ease;
}


/* =========================================================
   CARD DECORATION
   ========================================================= */

.card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background:
        rgba(124,108,255,0.07);

    right: -55px;

    bottom: -60px;

    transition: 0.3s ease;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(124,108,255,0.20);

    box-shadow:
        0 25px 55px rgba(0,0,0,0.25);
}

.card:hover::after {
    transform: scale(1.5);
}


/* =========================================================
   CARD ICON
   ========================================================= */

.card-icon {
    position: relative;

    z-index: 2;

    width: 50px;
    height: 50px;

    border-radius: 14px;

    background:
        rgba(124,108,255,0.10);

    border:
        1px solid rgba(124,108,255,0.10);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;

    margin-bottom: 19px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.card h3 {
    position: relative;

    z-index: 2;

    color: #F8FAFC;

    font-size: 17px;

    margin-bottom: 9px;
}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

.card p {
    position: relative;

    z-index: 2;

    color: #64748B;

    font-size: 12px;

    line-height: 1.75;

    min-height: 63px;

    margin-bottom: 20px;
}


/* =========================================================
   CARD BUTTON
   ========================================================= */

.card-btn {
    position: relative;

    z-index: 2;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    border-radius: 9px;

    background:
        rgba(124,108,255,0.09);

    border:
        1px solid rgba(124,108,255,0.10);

    color: #A78BFA;

    font-size: 11px;
    font-weight: 800;

    transition: 0.2s ease;
}

.card-btn:hover {
    background: #7C6CFF;

    color: white;

    border-color: #7C6CFF;
}


/* =========================================================
   FEATURED CHALLENGE
   ========================================================= */

.featured {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 25px;

    align-items: center;

    background:
        linear-gradient(
            145deg,
            #111827,
            #0D111C
        );

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 20px;

    padding: 25px;

    transition: 0.25s ease;
}

.featured:hover {
    border-color:
        rgba(124,108,255,0.18);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.22);

    transform: translateY(-3px);
}


/* =========================================================
   CHALLENGE META
   ========================================================= */

.challenge-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}


/* =========================================================
   TAG
   ========================================================= */

.tag {
    padding: 5px 9px;

    border-radius: 20px;

    background:
        rgba(124,108,255,0.10);

    color: #A78BFA;

    border:
        1px solid rgba(124,108,255,0.10);

    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   OPEN
   ========================================================= */

.open {
    padding: 5px 9px;

    border-radius: 20px;

    background:
        rgba(20,184,166,0.10);

    color: #5EEAD4;

    border:
        1px solid rgba(20,184,166,0.10);

    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   FEATURED TITLE
   ========================================================= */

.featured h3 {
    color: #F8FAFC;

    font-size: 19px;

    margin-bottom: 7px;
}


/* =========================================================
   FEATURED DESCRIPTION
   ========================================================= */

.featured p {
    color: #64748B;

    font-size: 12px;

    line-height: 1.7;

    max-width: 650px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 13px;
}

.skills span {
    padding: 5px 8px;

    border-radius: 6px;

    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.05);

    color: #94A3B8;

    font-size: 9px;

    font-weight: 700;
}


/* =========================================================
   CHALLENGE ACTION
   ========================================================= */

.challenge-action {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 10px;
}


/* =========================================================
   DEADLINE
   ========================================================= */

.deadline {
    color: #64748B;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   CHALLENGE BUTTON
   ========================================================= */

.challenge-btn {
    padding: 11px 16px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #7C6CFF,
            #6254E8
        );

    color: white;

    font-size: 11px;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(98,84,232,0.18);

    transition: 0.2s ease;
}

.challenge-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(98,84,232,0.28);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    text-align: center;

    color: #475569;

    font-size: 9px;

    padding: 35px 0 5px;

    margin-top: 40px;

    border-top:
        1px solid rgba(255,255,255,0.06);
}


/* =========================================================
   RESPONSIVE — 1050px
   ========================================================= */

@media (max-width: 1050px) {

    .sidebar {
        width: 210px;
    }

    .main {
        margin-left: 210px;

        padding: 0 30px 50px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE — 800px
   ========================================================= */

@media (max-width: 800px) {

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 18px;
    }

    .brand {
        padding: 0 5px 20px;
    }

    .menu {
        flex-direction: row;

        flex-wrap: wrap;
    }

    .sidebar-bottom {
        display: none;
    }

    .main {
        margin-left: 0;

        padding: 0 20px 40px;
    }

    .topbar {
        margin-bottom: 25px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .welcome {
        padding: 30px;
    }

    .welcome-action {
        position: relative;

        display: inline-flex;

        right: auto;

        bottom: auto;

        margin-top: 20px;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .challenge-action {
        align-items: flex-start;
    }
}


/* =========================================================
   RESPONSIVE — 500px
   ========================================================= */

@media (max-width: 500px) {

    .main {
        padding: 0 15px 35px;
    }

    .topbar {
        height: 70px;
    }

    .topbar-left h2 {
        font-size: 15px;
    }

    .topbar-right {
        gap: 8px;
    }

    .welcome {
        padding: 25px;

        border-radius: 20px;
    }

    .welcome h1 {
        font-size: 27px;
    }

    .welcome p {
        font-size: 11px;
    }

    .section-title h2 {
        font-size: 17px;
    }
}