/* =========================================================
   PREPLY
   Clean • Soft • Academic • Modern
   ========================================================= */


/* ================= THEME ================= */

:root {

    --background: #F7F4EE;
    --surface: #FFFFFF;
    --surface-soft: #F1EEE7;

    --navy: #24324A;
    --navy-light: #526078;

    --indigo: #6257D9;
    --indigo-dark: #5147C7;

    --yellow: #F4C95D;
    --yellow-soft: #FFF3C9;

    --coral: #E9857A;
    --coral-soft: #FCE4E0;

    --mint: #75B9A5;
    --mint-soft: #DDF1EA;

    --blue-soft: #DDE9F5;

    --border: #E3DED4;

    --shadow: 0 12px 35px rgba(36, 50, 74, 0.08);

    --radius: 20px;

    --transition: all 0.25s ease;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(244, 201, 93, 0.16),
            transparent 25%
        ),
        var(--background);

    color: var(--navy);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


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

.navbar {

    width: 92%;
    max-width: 1200px;

    margin: 24px auto;

    padding: 16px 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(255, 255, 255, 0.92);

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

    border-radius: 18px;

    box-shadow: var(--shadow);

    position: sticky;

    top: 16px;

    z-index: 100;
}


.logo {

    font-size: 1.55rem;

    font-weight: 900;

    letter-spacing: 2px;

    color: var(--navy);
}

.logo span,
.footer-logo span {

    color: var(--coral);
}


nav {

    display: flex;

    gap: 5px;

    align-items: center;
}


.nav-link {

    text-decoration: none;

    color: var(--navy-light);

    font-size: 0.88rem;

    font-weight: 650;

    padding: 9px 13px;

    border-radius: 10px;

    transition: var(--transition);
}


.nav-link:hover {

    color: var(--navy);

    background: var(--surface-soft);
}


.nav-link.active {

    color: white;

    background: var(--indigo);

    box-shadow: 0 5px 15px rgba(98, 87, 217, 0.2);
}


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

main {

    width: 92%;

    max-width: 1200px;

    margin: 0 auto;

    min-height: 70vh;
}


/* ================= PAGE SYSTEM ================= */

.page-section {

    display: none;

    padding: 45px 0 70px;
}

.page-section.active-page {

    display: block;

    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


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

.welcome-section {

    min-height: 250px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}


.small-label {

    margin: 0 0 8px;

    font-size: 0.72rem;

    letter-spacing: 1.5px;

    font-weight: 800;

    color: var(--indigo);
}


.welcome-section h1 {

    font-size: clamp(2.3rem, 5vw, 4.2rem);

    line-height: 1.05;

    margin: 0;

    letter-spacing: -2px;
}


.welcome-section h1 span {

    color: var(--indigo);
}


.welcome-text {

    color: var(--navy-light);

    font-size: 1.05rem;

    margin-top: 14px;
}


.date-card {

    background: var(--yellow-soft);

    border: 1px solid #F0D887;

    padding: 20px 24px;

    border-radius: 18px;

    min-width: 150px;

    text-align: center;
}


.date-card span {

    display: block;

    font-size: 0.75rem;

    font-weight: 700;

    color: var(--navy-light);
}


.date-card strong {

    display: block;

    margin-top: 4px;
}


/* ================= DASHBOARD ================= */

.dashboard-grid {

    display: grid;

    grid-template-columns: 1.35fr 1fr;

    gap: 20px;
}


.dashboard-card {

    background: var(--surface);

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

    border-radius: var(--radius);

    padding: 26px;

    box-shadow: var(--shadow);

    transition: var(--transition);
}


.dashboard-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 18px 40px rgba(36, 50, 74, 0.11);
}


.card-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 25px;
}


.card-heading h2 {

    margin: 0;

    font-size: 1.3rem;
}


.card-label {

    margin: 0 0 4px;

    color: var(--navy-light);

    font-size: 0.68rem;

    letter-spacing: 1.2px;

    font-weight: 800;
}


.card-icon {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    background: var(--blue-soft);

    border-radius: 12px;
}


/* ================= PROGRESS CIRCLE ================= */

.progress-layout {

    display: flex;

    align-items: center;

    gap: 35px;
}


.progress-circle {

    width: 165px;

    height: 165px;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--indigo) 0deg 252deg,
            #E9E5DC 252deg 360deg
        );

    display: grid;

    place-items: center;

    flex-shrink: 0;

    position: relative;
}


.progress-circle::before {

    content: "";

    position: absolute;

    width: 125px;

    height: 125px;

    border-radius: 50%;

    background: var(--surface);
}


.progress-inner {

    position: relative;

    z-index: 1;

    text-align: center;
}


.progress-inner strong {

    display: block;

    font-size: 2rem;

    line-height: 1;

    color: var(--navy);
}


.progress-inner span {

    font-size: 0.72rem;

    color: var(--navy-light);
}


.progress-circle.large {

    width: 220px;

    height: 220px;
}


.progress-circle.large::before {

    width: 170px;

    height: 170px;
}


/* ================= SUBJECT PROGRESS ================= */

.subject-progress {

    flex: 1;
}


.subject-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 0.85rem;

    margin-top: 12px;
}


.subject-row > div {

    display: flex;

    align-items: center;

    gap: 8px;
}


.subject-dot {

    width: 9px;

    height: 9px;

    display: inline-block;

    border-radius: 50%;
}


.cpp {
    background: var(--indigo);
}

.maths {
    background: var(--coral);
}

.python {
    background: var(--mint);
}


.mini-bar,
.large-bar {

    width: 100%;

    height: 7px;

    margin-top: 6px;

    background: #ECE8E0;

    border-radius: 20px;

    overflow: hidden;
}


.mini-bar span,
.large-bar span {

    display: block;

    height: 100%;

    border-radius: 20px;
}


.cpp-bar {

    width: 80%;

    background: var(--indigo);
}


.maths-bar {

    width: 60%;

    background: var(--coral);
}


.python-bar {

    width: 70%;

    background: var(--mint);
}


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

.focus-list {

    display: flex;

    flex-direction: column;

    gap: 2px;

    margin-bottom: 22px;
}


.focus-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 14px 0;

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

    font-size: 0.9rem;
}


.focus-item > div {

    display: flex;

    align-items: center;

    gap: 10px;
}


.focus-item > span {

    color: var(--navy-light);

    font-size: 0.82rem;

    font-weight: 700;
}


.focus-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;
}


.focus-dot.yellow {
    background: var(--yellow);
}

.focus-dot.mint {
    background: var(--mint);
}

.focus-dot.coral {
    background: var(--coral);
}


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

.primary-button {

    border: none;

    background: var(--indigo);

    color: white;

    padding: 13px 20px;

    border-radius: 11px;

    font-size: 0.88rem;

    font-weight: 750;

    cursor: pointer;

    transition: var(--transition);
}


.primary-button:hover {

    background: var(--indigo-dark);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(98, 87, 217, 0.25);
}


.secondary-button {

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

    background: var(--surface-soft);

    color: var(--navy);

    padding: 11px 17px;

    border-radius: 10px;

    font-size: 0.82rem;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}


.secondary-button:hover {

    border-color: var(--indigo);

    color: var(--indigo);
}


.text-button {

    border: none;

    background: transparent;

    color: var(--indigo);

    font-weight: 700;

    cursor: pointer;
}


/* ================= UPCOMING ================= */

.upcoming-section {

    margin-top: 55px;
}


.section-title {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 18px;
}


.section-title h2 {

    margin: 0;

    font-size: 1.6rem;
}


.upcoming-grid {

    display: grid;

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

    gap: 16px;
}


.deadline-card {

    padding: 23px;

    border-radius: 18px;

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

    min-height: 170px;

    transition: var(--transition);
}


.deadline-card:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow);
}


.yellow-card {

    background: var(--yellow-soft);

    border-color: #F0D887;
}


.pink-card {

    background: var(--coral-soft);

    border-color: #F0C4BE;
}


.mint-card {

    background: var(--mint-soft);

    border-color: #B9DDD2;
}


.deadline-tag {

    display: inline-block;

    font-size: 0.62rem;

    font-weight: 850;

    letter-spacing: 1px;

    color: var(--navy-light);

    margin-bottom: 8px;
}


.deadline-card h3 {

    margin: 0 0 5px;

    font-size: 1.05rem;
}


.deadline-card p {

    color: var(--navy-light);

    font-size: 0.78rem;

    margin: 0 0 20px;
}


.deadline-card strong {

    font-size: 0.82rem;
}


/* ================= EXPLORE ================= */

.explore-section {

    margin-top: 55px;

    padding: 34px 38px;

    border-radius: 22px;

    background: var(--indigo);

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    overflow: hidden;

    position: relative;
}


.explore-section::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    right: -50px;

    top: -70px;
}


.explore-section .small-label {

    color: #DCD8FF;
}


.explore-section h2 {

    margin: 0;

    font-size: 1.7rem;
}


.explore-section p:not(.small-label) {

    margin-bottom: 0;

    color: #E9E7FF;

    max-width: 600px;

    font-size: 0.88rem;
}


.explore-section .primary-button {

    background: white;

    color: var(--indigo);

    position: relative;

    z-index: 2;

    white-space: nowrap;
}


/* ================= ABOUT ================= */

.about-section {

    margin-top: 70px;

    padding: 55px 0 80px;

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

    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 80px;

    align-items: center;
}


.about-content h2 {

    margin: 0 0 18px;

    font-size: 2rem;

    line-height: 1.2;

    max-width: 650px;
}


.about-content p:not(.small-label) {

    color: var(--navy-light);

    max-width: 650px;

    font-size: 0.92rem;
}


.about-highlights {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.about-highlights div {

    background: white;

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

    padding: 18px 20px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    gap: 20px;
}


.about-highlights strong {

    color: var(--indigo);

    font-size: 0.8rem;
}


.about-highlights span {

    font-weight: 700;
}


/* ================= INNER PAGES ================= */

.page-header {

    padding: 35px 0;

    margin-bottom: 20px;
}


.page-header h1 {

    font-size: 2.8rem;

    margin: 0 0 8px;

    letter-spacing: -1px;
}


.page-header > p:last-child {

    color: var(--navy-light);

    margin: 0;

    max-width: 650px;
}


/* ================= SUBJECT PAGE ================= */

.subject-cards {

    display: grid;

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

    gap: 18px;
}


.large-subject-card {

    background: white;

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

    border-radius: 18px;

    padding: 25px;

    box-shadow: var(--shadow);
}


.subject-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.subject-top > div {

    display: flex;

    align-items: center;

    gap: 10px;
}


.subject-top h2 {

    margin: 0;

    font-size: 1.15rem;
}


.large-subject-card p {

    color: var(--navy-light);

    font-size: 0.82rem;
}


.large-subject-card > .large-bar {

    margin-top: 20px;
}


/* ================= DEADLINES PAGE ================= */

.deadline-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}


.deadline-row {

    display: grid;

    grid-template-columns: 80px 1fr auto;

    align-items: center;

    gap: 25px;

    background: white;

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

    border-radius: 18px;

    padding: 20px;

    box-shadow: var(--shadow);
}


.deadline-date {

    width: 60px;

    height: 60px;

    border-radius: 15px;

    background: var(--yellow-soft);

    display: grid;

    place-items: center;

    align-content: center;
}


.deadline-date strong {

    font-size: 1.25rem;

    line-height: 1;
}


.deadline-date span {

    font-size: 0.55rem;

    font-weight: 800;
}


.deadline-row h2 {

    margin: 2px 0;

    font-size: 1rem;
}


.deadline-row p {

    margin: 0;

    color: var(--navy-light);

    font-size: 0.78rem;
}


.deadline-status {

    background: var(--mint-soft);

    color: #377565;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 0.7rem;

    font-weight: 800;
}


/* ================= PLANNER ================= */

.planner-box,
.quiz-box {

    background: white;

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

    border-radius: 22px;

    padding: 30px;

    box-shadow: var(--shadow);

    max-width: 900px;
}


.planner-box label,
.quiz-box label {

    display: block;

    font-weight: 750;

    margin-bottom: 12px;
}


textarea,
input[type="text"] {

    width: 100%;

    padding: 16px;

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

    background: #FAF9F6;

    color: var(--navy);

    border-radius: 13px;

    font-family: inherit;

    font-size: 0.9rem;

    outline: none;

    resize: vertical;

    transition: var(--transition);
}


textarea {

    min-height: 150px;
}


textarea:focus,
input[type="text"]:focus {

    border-color: var(--indigo);

    box-shadow: 0 0 0 4px rgba(98, 87, 217, 0.08);
}


.planner-box .primary-button,
.quiz-box .primary-button {

    margin-top: 15px;
}


/* ================= AI RESULT ================= */

#result,
#quizResult {

    margin-top: 25px;
}


.ai-message {

    background: var(--surface-soft);

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

    border-radius: 15px;

    padding: 20px;

    line-height: 1.8;

    color: var(--navy);
}


#result h3,
#quizResult h3 {

    margin-top: 0;

    color: var(--indigo);
}


/* ================= QUIZ ================= */

.quiz-question {

    margin-top: 25px;

    padding: 25px;

    border-radius: 18px;

    background: var(--surface-soft);

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


.quiz-question h3 {

    color: var(--navy);

    margin-top: 0;
}


.quiz-option {

    display: block;

    width: 100%;

    text-align: left;

    margin: 10px 0;

    padding: 13px 16px;

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

    border-radius: 11px;

    background: white;

    color: var(--navy);

    cursor: pointer;

    transition: var(--transition);
}


.quiz-option:hover {

    border-color: var(--indigo);

    background: #F4F2FF;
}


.quiz-option.correct {

    background: var(--mint-soft);

    border-color: var(--mint);

}


.quiz-option.wrong {

    background: var(--coral-soft);

    border-color: var(--coral);
}


.quiz-next {

    margin-top: 18px;
}


.quiz-score {

    padding: 25px;

    background: var(--mint-soft);

    border-radius: 18px;

    text-align: center;
}


.quiz-score strong {

    display: block;

    font-size: 2.2rem;

    color: var(--indigo);
}


/* ================= PROGRESS PAGE ================= */

.progress-page-grid {

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 20px;
}


.big-progress-card,
.progress-details {

    background: white;

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

    border-radius: 22px;

    padding: 30px;

    box-shadow: var(--shadow);
}


.big-progress-card {

    text-align: center;

    display: flex;

    align-items: center;

    flex-direction: column;
}


.big-progress-card h2 {

    margin-bottom: 5px;
}


.big-progress-card p {

    color: var(--navy-light);

    font-size: 0.85rem;
}


.progress-details h2 {

    margin-top: 0;
}


.progress-detail {

    margin-top: 25px;
}


.progress-detail > div:first-child {

    display: flex;

    justify-content: space-between;

    font-size: 0.88rem;

    font-weight: 700;
}


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

footer {

    margin-top: 20px;

    padding: 35px 4%;

    background: var(--navy);

    color: white;

    text-align: center;
}


.footer-logo {

    font-size: 1.3rem;

    font-weight: 900;

    letter-spacing: 2px;
}


footer p {

    margin: 8px 0 3px;

    color: #DDE2EA;

    font-size: 0.85rem;
}


footer > span {

    color: #AEB7C6;

    font-size: 0.72rem;
}


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

@media (max-width: 900px) {

    .navbar {

        flex-direction: column;

        gap: 14px;

    }

    nav {

        flex-wrap: wrap;

        justify-content: center;

    }

    .dashboard-grid,
    .progress-page-grid,
    .about-section {

        grid-template-columns: 1fr;

    }

    .upcoming-grid,
    .subject-cards {

        grid-template-columns: 1fr 1fr;

    }

    .about-section {

        gap: 35px;

    }

}


@media (max-width: 600px) {

    .navbar {

        width: 94%;

    }

    main {

        width: 94%;

    }

    .welcome-section {

        flex-direction: column;

        align-items: flex-start;

        padding-top: 20px;

    }

    .welcome-section h1 {

        font-size: 2.4rem;

    }

    .date-card {

        width: 100%;

    }

    .progress-layout {

        flex-direction: column;

    }

    .upcoming-grid,
    .subject-cards {

        grid-template-columns: 1fr;

    }

    .explore-section {

        flex-direction: column;

        align-items: flex-start;

    }

    .deadline-row {

        grid-template-columns: 65px 1fr;

    }

    .deadline-status {

        grid-column: 2;

        width: fit-content;

    }

}
.page-section {
    display: none;
}

.page-section.active-page {
    display: block;
}
/* ================= PAGE NAVIGATION ================= */

.page-section {
    display: none !important;
}

.page-section.active-page {
    display: block !important;
}

/* ================= INTERACTIVE AI QUIZ ================= */

.quiz-question {
    margin-top: 25px;
}

.quiz-question h3 {
    font-size: 1.35rem;
    line-height: 1.6;
    margin: 15px 0 25px;
}

.quiz-option {
    width: 100%;
    display: block;
    text-align: left;

    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);

    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);

    padding: 16px 20px;
    margin: 12px 0;

    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;

    transition: var(--transition);
}

.quiz-option:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateX(4px);
}

.quiz-option:disabled {
    cursor: default;
}

.quiz-option.correct {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.7);
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.7);
}

.quiz-next {
    margin-top: 15px;
}

.quiz-score {
    text-align: center;
    padding: 40px 20px;
}

.quiz-score > strong {
    display: block;
    font-size: 4rem;
    margin: 15px 0;
}

.quiz-score h2 {
    margin-bottom: 12px;
}

.quiz-score p {
    line-height: 1.7;
}
/* =========================================================
   SUBJECT DASHBOARD
========================================================= */

.subject-dashboard {
    padding-top: 10px;
}

.subject-dashboard-header {
    margin-top: 25px;
    margin-bottom: 30px;
}

.subject-dashboard-header h1 {
    margin: 8px 0;
}

.subject-dashboard-header p {
    max-width: 650px;
    line-height: 1.6;
}


/* ================= DASHBOARD CARDS ================= */

.subject-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.subject-info-card {
    padding: 25px;
    border-radius: 18px;
}

.subject-info-card h2 {
    margin: 10px 0 15px;
}

.subject-info-card p {
    line-height: 1.6;
}


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

.topic-list {
    margin-top: 15px;
}

.topic {
    padding: 8px 0;
}

.topic.completed {
    font-weight: 500;
}


/* ================= ACTION BUTTONS ================= */

.subject-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 10px;
}

.subject-actions .primary-button,
.subject-actions .secondary-button {
    min-width: 150px;
}

/* ================= LOGIN SCREEN ================= */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f7f3;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.login-box .logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
}

.login-box h1 {
    margin: 10px 0;
}

.login-box p {
    color: #666;
    line-height: 1.6;
}

#userNameInput {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin: 25px 0 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
}

#userNameInput:focus {
    border-color: #222;
}

#loginButton {
    width: 100%;
}

.login-error {
    color: #d9534f !important;
    font-size: 14px;
    min-height: 20px;
}

/* =========================================================
   INTERACTIVE DEADLINES
========================================================= */


/* ================= CONTROLS ================= */

.deadline-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}


/* ================= DEADLINE FORM ================= */

.deadline-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}


.deadline-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
}


/* ================= FORM GRID ================= */

.deadline-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
}


.form-group.full-width {
    grid-column: 1 / -1;
}


.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}


.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid #dddddd;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #222222;
}


/* ================= FORM BUTTONS ================= */

.deadline-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


.deadline-form-actions button {
    min-width: 140px;
}


/* ================= ERROR ================= */

.deadline-error {
    color: #d64545;
    margin-top: 15px;
    font-size: 14px;
}


/* ================= DEADLINE ROW ================= */

.deadline-row {
    position: relative;
}


.deadline-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}


.deadline-complete-button,
.deadline-delete-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
}


.deadline-complete-button {
    color: #287a55;
    background: #e8f7ef;
}


.deadline-delete-button {
    color: #c94a4a;
    background: #fff0f0;
}


.deadline-complete-button:hover,
.deadline-delete-button:hover {
    transform: translateY(-1px);
}


/* ================= COMPLETED DEADLINE ================= */

.deadline-row.completed {
    opacity: 0.6;
}


.deadline-row.completed h2,
.deadline-row.completed p {
    text-decoration: line-through;
}


.deadline-row.completed .deadline-status {
    background: #e7f5ec;
    color: #287a55;
}


/* ================= EMPTY STATE ================= */

.empty-deadlines {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px dashed #d7d7d7;
}


.empty-deadlines h2 {
    margin-bottom: 8px;
}


.empty-deadlines p {
    margin: 0;
    opacity: 0.7;
}


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

@media (max-width: 700px) {

    .deadline-form-grid {
        grid-template-columns: 1fr;
    }


    .form-group.full-width {
        grid-column: auto;
    }


    .deadline-form-actions {
        flex-direction: column;
    }


    .deadline-form-actions button {
        width: 100%;
    }


    .deadline-controls {
        justify-content: stretch;
    }


    .deadline-controls button {
        width: 100%;
    }


    .deadline-row-actions {
        margin-left: 0;
        margin-top: 15px;
    }

}
/* =========================================================
TODAY'S STUDY TASKS
========================================================= */

.today-focus {
    width: 100%;
}


.today-focus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}


#taskProgress {
    font-weight: 600;
}


/* ---------- TASK ROW ---------- */

.study-task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 18px;
    margin-bottom: 12px;

    border-radius: 16px;
}


.study-task-info h3 {
    margin: 0 0 6px 0;
}


.study-task-info p {
    margin: 0;
}


/* ---------- COMPLETED TASK ---------- */

.study-task-row.completed {
    opacity: 0.65;
}


.study-task-row.completed h3 {
    text-decoration: line-through;
}


/* ---------- ACTIONS ---------- */

.study-task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.study-task-complete,
.study-task-delete {
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
}


.study-task-delete {
    font-size: 16px;
}


/* ---------- FORM ---------- */

#taskForm {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
}


#taskForm input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px;
    margin-bottom: 10px;

    border-radius: 10px;
    border: 1px solid #ddd;
}


#taskError {
    margin: 5px 0 10px;
}


/* ---------- COMPLETION MESSAGE ---------- */

#taskCompletionMessage {
    margin: 15px 0;
    padding: 15px;
    border-radius: 14px;
    font-weight: 600;
}


/* ---------- EMPTY STATE ---------- */

.empty-study-tasks {
    text-align: center;
    padding: 25px;
}