:root {
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-muted: #f8f9fb;
    --border: #dddddd;
    --footer: #001f3f;
}



/* =================================
   RESET AND GLOBAL STYLES
================================= */









body {
    min-width: 0;
    overflow-x: hidden;
    background: var(--background);
    color: #333;
    font-family: Arial, sans-serif;
}









/* =================================
   HEADER AND NAVIGATION
================================= */



header {
    width: 100%;
    background: var(--surface);
}






/* =================================
   LOGO
================================= */



.logo {
    color: var(--primary);
}



.logo span {
    color: var(--secondary);
}



.logo:hover,
.logo:focus-visible {
    color: var(--primary);
    outline: none;
}



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



.header-welcome {
    color: var(--primary);
}






/* =================================
   AUTHENTICATED NAVIGATION
================================= */



.main-nav {
    flex-shrink: 0;
}



.main-nav.nav-hidden {
    display: none;
}



.nav-link,
.dropdown-btn {
    color: var(--primary);
    font-family: inherit;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.nav-link:hover,
.nav-link:focus-visible,
.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    background: #eef5fc;
    color: var(--secondary);
}



.nav-link.active {
    background: #e0efff;
    color: #005fa3;
    font-weight: bold;
}



/* =================================
   SUBJECTS DROPDOWN
================================= */












.dropdown-content {
    background: var(--surface);
    border: 1px solid #e3eaf2;
}



.dropdown-content a {
    color: #333;
    line-height: 1.4;
    transition: background-color 0.2s ease,
        color 0.2s ease;
}



.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: #eef5fc;
    color: var(--secondary);
}



.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.mobile-open .dropdown-content {
    display: block;
}



.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow,
.dropdown.mobile-open .dropdown-arrow {
    transform: rotate(180deg);
}



/* =================================
   LOGOUT BUTTON
================================= */



.nav-logout {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: #ffffff;
    font-family: inherit;
    transition: background-color 0.2s ease,
        border-color 0.2s ease;
}



.nav-logout:hover,
.nav-logout:focus-visible {
    background: #005fa3;
    border-color: #005fa3;
}



/* =================================
   AUTH BUTTON CONTAINER
================================= */






/* =================================
   MOBILE HAMBURGER
================================= */



.mobile-toggle {
    margin-left: auto;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}



.mobile-toggle:hover,
.mobile-toggle:focus-visible {
    background: #eef5fc;
}



/* =================================
   GENERAL BUTTONS
================================= */



.btn {
    background: var(--secondary);
    border: 2px solid var(--secondary);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}



.btn:hover,
.btn:focus-visible {
    background: #005fa3;
    border-color: #005fa3;
    color: #ffffff;
    outline: none;
}



.btn-secondary {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}



.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}



/* =================================
   HERO
================================= */



.hero {
    width: 100%;
    margin-bottom: 30px;
    padding: 70px 20px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: #ffffff;
    text-align: center;
}



.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}



.hero h1 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.2;
}



.hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
}



.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}



.hero-feature {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
}



/* =================================
   PROGRESS CONTENT CONTAINER
================================= */



.progress-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.progress-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px;
    min-width: 0;
}



.progress-section > h2 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1.3;
}



/* =================================
   SUMMARY CARDS
================================= */



.summary-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 25px;
    padding: 20px;
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}



.summary-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
    width: 100%;
}



.summary-item {
    min-width: 0;
    padding: 15px;
    background: var(--surface-muted);
    border-radius: 8px;
    overflow-wrap: anywhere;
}



.summary-item h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 18px;
}



.summary-item p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}



.loading {
    padding: 15px;
    font-size: 18px;
    text-align: center;
}



/* =================================
   SUBJECT PERFORMANCE
================================= */



#subjectCardsContainer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}



#subjectCardsContainer > h2 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1.3;
}



.subject-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}



.subject-card {
    width: 100%;
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-wrap: anywhere;
}



.subject-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.3;
}



.subject-card p {
    margin-top: 8px;
}



.subject-score {
    margin: 15px 0;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}



/* =================================
   BADGES
================================= */



.badges-title {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1.3;
}



.badge {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background: #ffd966;
    border-radius: 20px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* =================================
   TABLE CONTAINERS
================================= */



.table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}



.table-scroll > h2 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 26px;
    line-height: 1.3;
}



/* =================================
   TABLES
================================= */



table {
    width: 100%;
    max-width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: var(--surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}



th {
    padding: 12px;
    background: var(--primary);
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}



td {
    padding: 12px;
    border: 1px solid var(--border);
    vertical-align: top;
    overflow-wrap: anywhere;
}



tr:nth-child(even) {
    background: #f8f8f8;
}



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



footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 20px;
    background: var(--footer);
    color: #ffffff;
}












/* =================================
   TABLET AND MOBILE NAVIGATION
================================= */



@media (max-width: 900px) {
/*
       Progress is a protected page, so the hamburger
       is always displayed on mobile.
    */

    


    


    
.main-nav {
    order: 4;
    background: var(--surface);
    border-top: 1px solid #e3eaf2;
}


    
.main-nav.active {
    display: flex;
}


    
.main-nav.nav-hidden {
    display: none;
}


    


    


    


    
.dropdown-content {
    border: 0;
    border-radius: 8px;
}


    
.dropdown.mobile-open .dropdown-content {
    display: block;
}


    


    


    
.progress-content {
    padding: 0 16px;
}
}



/* =================================
   SMALL MOBILE SCREENS
================================= */



@media (max-width: 600px) {
.mobile-toggle {
    font-size: 22px;
}


    
.hero {
    padding: 50px 15px;
}


    
.hero h1 {
    font-size: 32px;
    line-height: 1.2;
}


    
.hero p {
    font-size: 16px;
}


    
.hero-features {
    gap: 10px;
}


    
.hero-feature {
    padding: 7px 13px;
    font-size: 14px;
}


    
.progress-content {
    padding: 0 12px;
}


    
.summary-card {
    margin-bottom: 18px;
    padding: 16px;
}


    
.progress-section {
    margin-bottom: 18px;
}


    
.summary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}


    
.summary-item {
    min-width: 0;
}


    
.subject-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}


    
.subject-card {
    padding: 18px;
}


    
.subject-score {
    font-size: 32px;
}


    
.badge {
    margin: 4px;
    padding: 8px 12px;
    font-size: 14px;
}


    
table {
    min-width: 650px;
}


    
th,
    td {
    padding: 10px;
    font-size: 14px;
}


    
footer {
    margin-top: 30px;
    padding: 25px 15px;
}
}
