html,
body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Font */
    --font-primary: 'Inter', sans-serif;

    --color-white: #FFFFFF;
    --color-yellow-light: #FEF9ED;
    --color-yellow-light-hover: #FEF6E4;
    --color-yellow-light-active: #FDEDC6;
    --color-yellow-normal: #F7C548;
    --color-yellow-normal-hover: #DEB141;
    --color-yellow-normal-active: #C69E3A;
    --color-yellow-dark: #B99436;
    --color-yellow-dark-hover: #94762B;
    --color-yellow-dark-active: #6F5920;
    --color-yellow-darker: #564519;
    --color-orange-light: #FEEFEB;
    --color-orange-light-hover: #FDE7E0;
    --color-orange-light-active: #FBCDC0;
    --color-orange-normal: #F25F33;
    --color-orange-normal-hover: #DA562E;
    --color-orange-normal-active: #C24C29;
    --color-orange-dark: #B64726;
    --color-orange-dark-hover: #91391F;
    --color-orange-dark-active: #6D2B17;
    --color-orange-darker: #552112;
    --color-beige-light: #FDFDFB;
    --color-beige-light-hover: #FCFCF8;
    --color-beige-light-active: #FAF9F1;
    --color-beige-normal: #EEEBD3;
    --color-beige-normal-hover: #D6D4BE;
    --color-beige-normal-active: #BEBCA9;
    --color-beige-dark: #B3B09E;
    --color-beige-dark-hover: #8F8D7F;
    --color-beige-dark-active: #6B6A5F;
    --color-beige-darker: #53524A;
    --color-charcoal-background: #F7F8F8;
    --color-charcoal-light: #EDEEEF;
    --color-charcoal-light-hover: #E3E5E7;
    --color-charcoal-light-active: #C6CACE;
    --color-charcoal-normal: #465362;
    --color-charcoal-normal-hover: #3F4B58;
    --color-charcoal-normal-active: #38424E;
    --color-charcoal-dark: #353E4A;
    --color-charcoal-dark-hover: #2A323B;
    --color-charcoal-dark-active: #1F252C;
    --color-charcoal-darker: #191D22;
    --color-navy-lighter: #8D98A5;
    --color-navy-light-hover: #768392;
    --color-navy-light-active: #5A6A7C;
    --color-navy-normal: #011936;
    --color-navy-normal-hover: #01152E;
    --color-navy-normal-active: #011227;
    --color-navy-dark: #000913;
    --color-navy-dark-hover: #00060E;
    --color-navy-dark-active: #000306;
    --color-upampdown-positive: #3BB273;
    --color-upampdown-negative: #DB5A42;
    --color-upampdown-positivebg: #E0F4E7;
    --color-upampdown-negativebg: #FCE9E7;
    --color-band-score-9: #3BB273;
    --color-band-score-8: #58BC6B;
    --color-band-score-7: #87C45D;
    --color-band-score-6: #A0B845;
    --color-band-score-5: #F89D3C;
    --color-band-score-4: #D88A04;
    --color-band-score-3: #F25F33;
    --color-band-score-2: #DB4431;
    --color-band-score-1: #D73731;
    --color-band-score-0: #DB5A42;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--color-charcoal-light);
}

a {
    text-decoration: none;
    color: inherit;
}

.main-header {
    background-color: var(--color-charcoal-light);
    padding: 20px 80px;
    align-items: center;
}

.main-header .header-left,
.main-header .header-right {
    flex: 1;
}

.main-header .header-right {
    display: flex;
    justify-content: flex-end;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-navy-normal);
}

.logo-footer {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-charcoal-background);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--color-charcoal-background);
    padding: 0px;
    margin: 10px 10px;
    border-radius: 25px;
}

.main-nav ul li {
    padding: 0;
}

.main-nav ul a {
    display: block;
    padding: 15px 20px;
    border-radius: 25px;
    color: var(--color-charcoal-normal);
    font-weight: 500;
}

.main-nav ul a.active {
    background-color: var(--color-orange-normal);
    color: var(--color-charcoal-light);
}

.main-nav ul a:not(.active) {
    background-color: transparent;
}

.main-nav ul a:not(.active):hover {
    color: var(--color-orange-normal);
    cursor: pointer;
}

.auth-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-transparent {
    color: var(--color-charcoal-dark);
    border-color: var(--color-charcoal-light);
}

.btn-transparent:hover {
    color: var(--color-navy-normal);
    border-color: var(--color-navy-normal);
}

.btn-solid {
    background-color: var(--color-navy-normal);
    color: var(--color-charcoal-light);
    border-color: var(--color-navy-normal);
}

.btn-solid:hover {
    background-color: var(--color-navy-dark-hover);
    border-color: var(--color-navy-dark-hover);
}

.main-container {
    padding: 0px 80px;
    margin: 0 auto;
}

.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0px 0px;
}

.main-footer {
    background-color: var(--color-charcoal-light);
    color: var(--color-charcoal-light);
    font-size: 14px;
    line-height: 1.5;
    padding: 40px 80px;
}

.footer-inner {
    background-color: var(--color-navy-light-active);
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 50px;
    border-radius: 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-cta p {
    margin: 15px 0;
}

.btn-cta {
    background-color: var(--color-orange-normal);
    color: var(--color-charcoal-light);
    font-size: 14px;
    padding: 10px 10px;
    border-radius: 5px;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--color-charcoal-background);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--color-charcoal-light);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-col ul a:hover {
    opacity: 1;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: var(--color-charcoal-light);
    opacity: 0.2;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-navy-lighter);
}

.welcome-heading {
    font-size: 38px;
    color: var(--color-charcoal-normal);
    font-weight: 500;
}

.lab-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.lab-left {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
}

.lab-right {
    flex: 2;
    height: auto;
    display: flex;
    flex-direction: column;
}

.test-panel-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 24px;
}

.search-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px 20px;
    background-color: var(--color-charcoal-light);
    border-radius: 25px;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--color-navy-lighter);
    width: 100%;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 24px;
    border: 1px solid var(--color-charcoal-light-active);
    border-radius: 15px;
    color: var(--color-navy-light-active);
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.category-tabs {
    background-color: var(--color-charcoal-background);
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-button {
    flex-grow: 1;
    width: 100%;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border: none;
    border-radius: 25px;
    background-color: var(--color-charcoal-background);
    color: var(--color-navy-light-hover);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover {
    background-color: var(--color-charcoal-light-hover);
}

.tab-button.active {
    background-color: var(--color-yellow-normal);
    color: var(--color-charcoal-normal);
    font-size: 18px;
    font-weight: 700;
}

.tab-button:hover:not(.active) {
    background-color: var(--color-charcoal-light);
}

.category-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-charcoal-normal);
    line-height: 1.5;
    padding: 0px 5px;
}

.test-list-container {
    padding: 24px;
    background-color: var(--color-charcoal-background);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    height: 70vh;
}

.test-list-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.test-item:hover {
    background-color: var(--color-charcoal-light);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 0 0;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.test-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
}

.test-icon.empty-icon {
    border: 2px solid var(--color-charcoal-normal);
}

.test-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-charcoal-normal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.test-name-wrapper {
    display: flex;
    max-width: 400px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
}

.time-taken {
    font-size: 14px;
    color: var(--color-navy-lighter);
    white-space: nowrap;
}


.item-stats-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.test-stats-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.overall-band,
.time-taken {
    white-space: nowrap;
    font-size: 14px;
}

.overall-band {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 15px;
    border-radius: 10px;
    background-color: var(--color-upampdown-positivebg);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy-normal);
    white-space: nowrap;
}

.test.bandScore {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy-light-active)
}

.go-button {
    font-size: 20px;
    line-height: 1;
    color: var(--color-navy-lighter);
    margin-left: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.test-divider {
    height: 1px;
    background-color: var(--color-charcoal-light-active);
    margin: 2px 0;
}

.test-item.completed {}

.test-item.completed .test-icon {
    background-color: var(--color-orange-normal);
}

.test-item.completed .test-icon svg {
    fill: var(--color-beige-light);
}

.test-item.incomplete {
    background-color: transparent;
}

.test-item.incomplete .test-icon svg {
    fill: var(--color-charcoal-light-hover);
}

.test-item.incomplete .overall-band {
    visibility: hidden;
}

.test-item.incomplete .test-icon {
    border: 1px solid var(--color-charcoal-light-hover);
}

.test-item.incomplete:hover {
    background-color: var(--color-charcoal-light);
}

.stats-panel-container {
    flex: 1;
    padding: 20px 25px;
    background-color: var(--color-charcoal-background);
    border-radius: 20px;
}

.stats-panel h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-charcoal-darker);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.summary-stats div {
    display: flex;
    flex-direction: column;
}

.summary-stats span {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy-normal);
}

.stats-panel img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

.weekly-activity-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekly-activity-group h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal-normal);
    margin-bottom: 0;
}

.weekly-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.completed-tests {
    display: flex;
    gap: 4px;
    align-items: baseline;
}

.test-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-charcoal-normal);
}

.test-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-charcoal-normal);
}

.avg-improvement {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avg-improvement p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-charcoal-normal);
}

.improvement-box {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    gap: 4px;
}

.improvement-box.positive {
    background-color: var(--color-upampdown-positivebg);
    color: var(--color-upampdown-positive);
}

.improvement-box.negative {
    background-color: var(--color-upampdown-negativebg);
    color: var(--color-upampdown-negative);
}

.improvement-box.neutral {
    background-color: var(--color-yellow-light-active);
    color: var(--color-yellow-normal-hover);
}

.improvement-box .icon {
    font-size: 12px;
}

.improvement-box .value {
    font-size: 14px;
    font-weight: 400;
}

.ai-comment {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-navy-light-hover);
    line-height: 1.5;
}

.summary-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.summary-group h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal-normal);
    margin-bottom: 0;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-charcoal-light-active);
    border-radius: 12px;
    padding: 10px;
    height: 80px;
}

.summary-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-charcoal-normal);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-orange-normal);
}

.test-stats h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal-normal);
    margin-bottom: 10px;
}

.summary-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.stats-divider {
    border: 0;
    height: 1px;
    background-color: var(--color-charcoal-light-active);
    margin: 15px 0;
}

.progress-graph-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-graph-group h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal-normal);
    margin-bottom: 0;
}

.graph-placeholder {
    border-radius: 12px;
    padding: 10px;
}

.ai-suggestions-group {
    margin-top: 0px;
    padding-top: 0px;
}

.ai-suggestions-group h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-charcoal-normal);
    margin-bottom: 10px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.suggestion-item {
    padding: 5px 10px;
    border: 0.5px solid var(--color-charcoal-light-active);
    border-radius: 12px;
}

.suggestion-item p {
    font-size: 14px;
    color: var(--color-charcoal-normal);
    line-height: 1.5;
    margin: 0;
}

.tab-button .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.tab-button .icon {
    background-color: var(--color-charcoal-light);
}

.tab-button .icon svg {
    fill: var(--color-charcoal-light-active);
}

.tab-button.active .icon {
    background-color: var(--color-yellow-normal-hover)
}

.tab-button.active .icon svg {
    fill: var(--color-charcoal-normal)
}

.test-icon svg {
    width: 20px;
    height: 20px;
}

.test-icon.completed svg {
    fill: var(--color-green-normal);
}

.test-icon.incomplete svg {
    fill: var(--color-charcoal-light);
}

.search-box .icon .field-icon {
    width: 28px;
    height: 28px;
    fill: var(--color-navy-lighter);
}

.search-box .icon {
    line-height: 0;
    display: flex;
}

.filter-button .icon {
    display: flex;
    align-items: center;
    line-height: 0;
}

.filter-button .icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-navy-lighter);
}

.filter-button:hover,
.filter-button:active {
    background-color: var(--color-charcoal-light);
}

.filter-button:hover .icon svg,
.filter-button:active .icon svg {
    fill: var(--color-charcoal-normal);
}

.nowrap {
    white-space: nowrap;
}

.cs-hero {
    height: 100svh;
    min-height: 100dvh;
    padding: clamp(24px, 4vmin, 60px) 20px;
    display: grid;
    place-items: center;
    background: var(--color-charcoal-dark-active);
    overflow: hidden;
    position: relative;
}

.cs-orb {
    position: relative;
    width: clamp(260px, 80vmin, 640px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--color-charcoal-dark-active);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    isolation: isolate;
    overflow: visible;
}


.cs-orb::before {
    content: "";
    position: absolute;
    width: 110%;
    height: 110%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(242, 95, 51, 0.50) 0%, rgba(90, 106, 124, 0.50) 100%);
    filter: blur(60px) hue-rotate(0deg);
    z-index: 0;
    opacity: .6;
    z-index: 0;
    will-change: transform, filter, opacity;
    animation: breathe 7s ease-in-out infinite;
}

.cs-orb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-charcoal-dark-active);
    z-index: 1;
}


@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: blur(52px);
        opacity: .65;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
        filter: blur(80px);
        opacity: .5;
    }
}

.cs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: min(540px, 88%);
    margin-inline: auto;
    text-align: left;
    color: var(--color-charcoal-background);
}

.cs-logo {
    font-family: 'lexend exa', sans-serif;
    color: var(--color-charcoal-background);
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.cs-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 100%;
    margin-bottom: 16px;
    color: var(--color-charcoal-background);
    align-self: stretch;
    text-align: center;
}

.cs-sub {
    color: var(--color-charcoal-light-hover);
    text-align: center;
    font-weight: 300;
    font-size: 16px;
    align-self: stretch;
    margin-bottom: 30px;
}

.cs-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-charcoal-light-active);
    margin-bottom: 10px;
}


.cs-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cs-input {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 10px;
    height: 42px;
    width: 200px;
    color: var(--color-charcoal-light-active);
    font-weight: 300;
    border-radius: 10px;
    border: 0.5px solid var(--color-charcoal-normal);
    background: var(--color-charcoal-normal-active);
    outline: none;
    transition: border .18s, box-shadow .18s, background .18s;
}

.cs-input::placeholder {
    color: var(--color-navy-lighter);
}

.cs-input:focus {
    border-color: var(--color-orange-normal);
    box-shadow: 0 0 0 4px rgba(242, 95, 51, .2);
    background: #3b4550;
}

.cs-btn {
    height: 42px;
    border-radius: 10px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cs-btn:disabled {
    opacity: .9;
    background: var(--color-charcoal-light-active);
    color: var(--color-navy-lighter);
    cursor: not-allowed;
}

.cs-status {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-charcoal-light);
    text-align: center;
    max-width: min(520px, 90%);
    margin-inline: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .cs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cs-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 0;
        min-height: 100dvh;
    }

    .cs-orb {
        width: 520px;
        aspect-ratio: 1 / 1;
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .cs-card {
        max-width: 90%;
        width: auto;
        margin-inline: auto;
        padding-inline: 16px;
        text-align: center;
    }

    .cs-row {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cs-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .cs-sub {
        font-size: 15px;
    }

    .cs-input,
    .cs-btn {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .cs-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}