/* =========================
   VARIABLES
========================= */

:root {

    --background: #050505;

    --surface: #0d0d0d;

    --surface-hover: #141414;

    --border: #242424;

    --text: #f5f5f5;

    --muted: #8a8a8a;

    --accent: #ffffff;

    --green: #22c55e;

    --yellow: #eab308;

    --red: #ef4444;

}


/* LIGHT MODE */

body.light {

    --background: #f5f5f5;

    --surface: #ffffff;

    --surface-hover: #f0f0f0;

    --border: #dedede;

    --text: #111111;

    --muted: #666666;

    --accent: #111111;

}


/* =========================
   RESET
========================= */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--background);

    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;

    min-height: 100vh;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;

}


/* =========================
   NAVBAR
========================= */

.navbar {

    height: 72px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: var(--background);

    position: sticky;

    top: 0;

    z-index: 100;

}


.logo {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -1px;

}


.logo span {

    color: var(--green);

}


.nav-links {

    display: flex;

    gap: 35px;

}


.nav-links a {

    color: var(--muted);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s ease;

}


.nav-links a:hover {

    color: var(--text);

}


.nav-links a.active {

    color: var(--text);

}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}


.theme-toggle {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: var(--surface);

    cursor: pointer;

    font-size: 16px;

    transition: 0.2s ease;

}


.theme-toggle:hover {

    background: var(--surface-hover);

    transform: rotate(15deg);

}


.profile-button {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border: none;

    background: var(--text);

    color: var(--background);

    font-weight: bold;

    cursor: pointer;

}


/* =========================
   CONTAINER
========================= */

.container {

    width: 88%;

    max-width: 1250px;

    margin: auto;

    padding: 55px 0 80px;

}


/* =========================
   WELCOME
========================= */

.welcome {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 35px;

}


.eyebrow {

    color: var(--green);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 12px;

}


.welcome h1 {

    font-size: 38px;

    letter-spacing: -1.5px;

    margin-bottom: 8px;

}


.welcome-text {

    color: var(--muted);

    font-size: 16px;

}


.date-card {

    border: 1px solid var(--border);

    background: var(--surface);

    padding: 15px 20px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 150px;

}


.date-card span {

    color: var(--muted);

    font-size: 12px;

}


.date-card strong {

    font-size: 15px;

}


/* =========================
   STATS
========================= */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 25px;

}


.stat-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 16px;

    transition: 0.25s ease;

}


.stat-card:hover {

    background: var(--surface-hover);

    transform: translateY(-3px);

}


.stat-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--surface-hover);

    border-radius: 10px;

    font-size: 20px;

}


.stat-card p {

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 5px;

}


.stat-card h2 {

    font-size: 24px;

}


.warning-icon {

    background: rgba(234, 179, 8, 0.1);

}


/* =========================
   MAIN GRID
========================= */

.main-grid {

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 20px;

    margin-bottom: 25px;

}


/* =========================
   FOCUS CARD
========================= */

.focus-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 30px;

    position: relative;

    overflow: hidden;

}


.focus-card::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.05);

    right: -70px;

    bottom: -80px;

}


.card-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.card-label {

    color: var(--muted);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

}


.focus-badge {

    font-size: 11px;

    padding: 6px 10px;

    border-radius: 20px;

    color: var(--yellow);

    background: rgba(234, 179, 8, 0.1);

}


.focus-card h2 {

    font-size: 32px;

    margin-top: 35px;

    margin-bottom: 5px;

}


.focus-topic {

    color: var(--muted);

    font-size: 17px;

}


.focus-score {

    margin-top: 28px;

}


.focus-score > div:first-child {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

}


.focus-score span {

    color: var(--muted);

    font-size: 12px;

}


.focus-score strong {

    font-size: 14px;

}


.progress {

    height: 7px;

    background: var(--border);

    border-radius: 20px;

    overflow: hidden;

}


.progress-fill {

    height: 100%;

    background: var(--green);

    border-radius: inherit;

}


.primary-button {

    margin-top: 28px;

    padding: 12px 20px;

    background: var(--text);

    color: var(--background);

    border: none;

    border-radius: 9px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s ease;

}


.primary-button:hover {

    transform: translateY(-2px);

    opacity: 0.85;

}


/* =========================
   EXAMS
========================= */

.exams-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 30px;

}


.card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}


.card-header h2 {

    margin-top: 6px;

    font-size: 23px;

}


.icon-button {

    width: 35px;

    height: 35px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    cursor: pointer;

}


.exam {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 0;

    border-top: 1px solid var(--border);

}


.exam-info {

    display: flex;

    align-items: center;

    gap: 12px;

}


.exam-info strong {

    display: block;

    font-size: 14px;

}


.exam-info small {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 4px;

}


.exam > strong {

    font-size: 13px;

}


.exam-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

}


.economics {

    background: #3b82f6;

}


.accounting {

    background: #a855f7;

}


.marketing {

    background: #f97316;

}


/* =========================
   TOPICS
========================= */

.topics-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 30px;

}


.section-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 25px;

}


.section-header h2 {

    margin-top: 7px;

    font-size: 23px;

}


.section-header p {

    color: var(--muted);

    font-size: 13px;

    margin-top: 6px;

}


.secondary-button {

    background: transparent;

    color: var(--text);

    border: 1px solid var(--border);

    padding: 9px 14px;

    border-radius: 8px;

    cursor: pointer;

}


.secondary-button:hover {

    background: var(--surface-hover);

}


/* =========================
   TOPIC ROWS
========================= */

.topic {

    display: grid;

    grid-template-columns: 1fr 70px 90px;

    align-items: center;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid var(--border);

}


.topic-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

}


.topic-title strong {

    font-size: 14px;

}


.subject-tag {

    font-size: 9px;

    padding: 4px 7px;

    border-radius: 5px;

    background: var(--surface-hover);

    color: var(--muted);

}


.mini-progress {

    width: 100%;

    max-width: 300px;

    height: 4px;

    background: var(--border);

    border-radius: 10px;

    overflow: hidden;

}


.mini-progress-fill {

    height: 100%;

}


.danger {

    color: var(--red);

}


.warning {

    color: var(--yellow);

}


.mini-progress-fill.danger {

    background: var(--red);

}


.mini-progress-fill.warning {

    background: var(--yellow);

}


.score {

    text-align: center;

    font-size: 14px;

}


.practice-button {

    background: transparent;

    color: var(--text);

    border: 1px solid var(--border);

    padding: 8px 10px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 11px;

    transition: 0.2s ease;

}


.practice-button:hover {

    background: var(--text);

    color: var(--background);

}


/* =========================
   FOOTER
========================= */

footer {

    border-top: 1px solid var(--border);

    padding: 25px;

    text-align: center;

    color: var(--muted);

    font-size: 11px;

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .nav-links {

        display: none;

    }

    .stats-grid {

        grid-template-columns: 1fr;

    }

    .main-grid {

        grid-template-columns: 1fr;

    }

    .welcome {

        align-items: flex-start;

        gap: 20px;

        flex-direction: column;

    }

}


@media (max-width: 600px) {

    .container {

        width: 92%;

        padding-top: 35px;

    }

    .navbar {

        padding: 0 4%;

    }

    .welcome h1 {

        font-size: 30px;

    }

    .date-card {

        width: 100%;

    }

    .topic {

        grid-template-columns: 1fr 60px;

    }

    .practice-button {

        display: none;

    }

    .section-header {

        flex-direction: column;

        gap: 15px;

    }

}
