
/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* GLOBAL STYLES */
:root {
    --background: #0b1220;
    --surface: #152238;
    --surface-light: #1d304c;
    --text: #f8fafc;
    --muted: #a4b4cd;
    --accent: #3b82f6;
    --border: #30425c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Poppins', Arial, sans-serif;

    background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
     url("images/5c.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    

;
    line-height: 1.6;

}

/* LIGHT MODE */
body.light-mode {
    --background: #f3f7fd;
    --surface: white;
    --surface-light: #e8f0fc;
    --text: #17243b;
    --muted: #596b84;
    --accent: #2563eb;
    --border: #d5e0ef;
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 7%;
    background: black;
    border-bottom: 1px solid var(--border)
}

.logo {
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
    font-family: italic;
}

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



.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.theme-btn {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 10px;
    white-space: nowrap;
}


/* MAIN CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 24px;
}

/* WELCOME */
.welcome {
    background: linear-gradient(120deg, #193a73, #11233e);
    padding: 50px 35px;
    border-radius: 20px;
    color: white;
    margin-bottom: 20px;
;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.welcome .eyebrow {
    color: #93c5fd;
}

.welcome h1 {
    font-size: clamp(25px, 4vw, 38px);
    margin-bottom: 12px;
}

.welcome > p:last-child {
    color: #c4d8f5;
}

/* STATISTICS */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-card h2 {
    font-size: 32px;
    color: var(--accent);
}

.stat-card p {
    color: var(--muted);
    font-size: 14px;
}

/* SECTIONS */
.section {
    margin-top: 55px;
    scroll-margin-top: 25px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 27px;
}

.section-label {
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 13px;
    border-radius: 20px;
    font-size: 12px;
}

/* SUBJECT CARDS */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.subject-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.subject-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.subject-icon {
    font-size: 33px;
    margin-bottom: 18px;
}

.subject-card h3 {
    margin-bottom: 8px;
}

.subject-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.subject-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--surface-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

/* GENERAL PANEL */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px;
}

.panel h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* FORMS */
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.form-grid input,
.form-grid select {
    flex: 1 1 170px;
    min-width: 0;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 13px;
    border-radius: 10px;
    outline: none;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--accent);
}

.form-grid input::placeholder {
    color: var(--muted);
}

.primary-btn {
    border: none;
    padding: 13px 22px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    transition: opacity 0.2s;
}

.primary-btn:hover {
    opacity: 0.85;
}

/* TASK MANAGER */
.task-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.task-toolbar h3 {
    margin: 0;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 12px;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.task-list,
.study-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item,
.study-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 16px;
    background: var(--surface-light);
    border-radius: 12px;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.task-info input {
    width: 19px;
    height: 19px;
    accent-color: var(--accent);
}

.task-title {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.task-subject,
.study-details {
    color: var(--muted);
    font-size: 12px;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--muted);
}

.delete-btn {
    border: 1px solid var(--border);
    background: var(--background);
    color: #f87171;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
}

.delete-btn:hover {
    border-color: #f87171;
}

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 25px 5px;
    font-size: 14px;
}

.subheading {
    margin-top: 20px;
}

/* FOOTER */
footer {
    margin-top: 65px;
    border-top: 1px solid var(--border);
    padding: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* TABLET */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .navbar {
        padding: 18px;
    }

    .container {
        padding: 20px 15px;
    }

    .welcome {
        padding: 30px 22px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .section-heading h2 {
        font-size: 23px;
    }

    .panel {
        padding: 17px;
    }

    .form-grid {
        flex-direction: column;
    }

    .form-grid input,
    .form-grid select,
    .form-grid button {
        flex: auto;
        width: 100%;
    }

    .task-item,
    .study-item {
        align-items: flex-start;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 12px;
    }
}
img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    body {
    font-family: 'Poppins', Arial, sans-serif;

    background-image: url("images/background.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: var(--text);
    line-height: 1.6;
}
}