
:root {
    --bg: #f7f8fc;
    --ink: #172033;
    --muted: #68738a;
    --blue: #4f46e5;
    --line: #e8eaf2;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   PREMIUM NAVBAR — ONLY NAVBAR REDESIGNED
   ========================================= */

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    padding: 15px 7%;

    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.035);
}

/* Brand and school name */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.7px;
    white-space: nowrap;
    line-height: 1.25;

    color: #172033;

    transition: color 0.25s ease;
}

.brand:hover {
    color: var(--blue);
}

/* Logo */

.logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);

    background: linear-gradient(
        145deg,
        #7775f8 0%,
        #4f46e5 55%,
        #3730a3 100%
    );

    color: #ffffff;
    font-size: 22px;
    font-weight: 850;

    box-shadow:
        0 6px 15px rgba(79, 70, 229, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brand:hover .logo {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28);
}

/* Home, Features and About navigation */

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 5px;

    background: #f8f9fc;
    border: 1px solid #eceef5;
    border-radius: 14px;
}

/* Individual navigation links */

.navbar nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;
    border-radius: 10px;

    color: #647087;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.1px;

    white-space: nowrap;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

/* Clean premium hover */

.navbar nav a:hover {
    color: #3730a3;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.055);
}

/* School Login button */

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex-shrink: 0;

    padding: 12px 20px;
    min-height: 46px;

    border: 1px solid #4338ca;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #5548e8 0%,
        #4338ca 100%
    );

    color: #ffffff;

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.1px;
    white-space: nowrap;

    box-shadow:
        0 5px 14px rgba(79, 70, 229, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.login-btn:hover {
    background: linear-gradient(
        135deg,
        #4338ca 0%,
        #312e81 100%
    );

    color: #ffffff;
    transform: translateY(-2px);

    box-shadow: 0 9px 22px rgba(79, 70, 229, 0.27);
}

.login-btn:active {
    transform: translateY(0);
}

/* Keyboard accessibility */

.navbar a:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.35);
    outline-offset: 4px;
}

/* =========================================
   ORIGINAL BUTTON STYLES
   ========================================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 19px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .2s, box-shadow .2s;
}

.primary-btn {
    color: white;
    background: var(--blue);
    box-shadow: 0 7px 20px #4f46e526;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px #4f46e538;
}

/* =========================================
   HERO — UNCHANGED
   ========================================= */

.accent, .hero h1 span, .about h2 span {
    color: var(--blue);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 55px;
    align-items: center;
    padding: 90px 7% 85px;
    background:
        radial-gradient(ellipse at 90% 10%, #e5e7ff 0, transparent 38%),
        var(--bg);
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 20px 0;
    font-size: clamp(38px, 4.4vw, 62px);
    letter-spacing: -2.6px;
    line-height: 1.12;
}

.hero-content > p, .about > p {
    max-width: 540px;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.secondary-btn {
    border: 1px solid #c7d2fe;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
}

.secondary-btn:hover {
    background: #eef2ff;
    color: #312e81;
    transform: translateY(-2px);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 28px;
    color: #58647a;
    font-size: 12px;
}

.dashboard-preview {
    padding: 26px;
    border: 1px solid #e6e8f2;
    border-radius: 23px;
    background: white;
    box-shadow: 0 25px 75px #20294d12;
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.preview-top small, .stat-card > span {
    color: var(--muted);
    font-size: 11px;
}

.preview-top h3 {
    margin-top: 3px;
    font-size: 23px;
}

.status {
    padding: 7px 10px;
    background: #ecfdf3;
    color: #17824d;
    border-radius: 20px;
    font-size: 10px;
    white-space: nowrap;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.stat-card {
    padding: 17px;
    background: #f8f9fd;
    border: 1px solid #eff0f7;
    border-radius: 14px;
}

.stat-card strong {
    display: block;
    margin: 8px 0 2px;
    font-size: 29px;
}

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

.preview-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 0;
    margin-top: 19px;
    border-top: 1px solid var(--line);
}

.note-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #eafbf1;
    color: #16834e;
    border-radius: 11px;
}

.preview-note p {
    color: var(--muted);
    font-size: 12px;
}

/* =========================================
   SECTIONS — UNCHANGED
   ========================================= */

.section {
    padding: 85px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading h2, .contact h2 {
    margin: 10px 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1px;
}

.section-heading p, .contact p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
}

.feature-card {
    padding: 27px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px #20294d0c;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: #efefff;
    color: var(--blue);
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
}

.feature-card h3 {
    margin: 17px 0 8px;
    font-size: 18px;
}

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

.about {
    background: #f0f1ff;
}

.about h2 {
    margin: 13px 0;
    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.2;
}

.contact {
    text-align: center;
}

.contact p {
    margin-bottom: 23px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 7%;
    border-top: 1px solid var(--line);
    background: white;
}

footer p {
    color: var(--muted);
    font-size: 12px;
}

/* =========================================
   TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .navbar {
        flex-wrap: wrap;
    }
}

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

@media (max-width: 560px) {
    .navbar {
        gap: 14px 10px;
        padding: 14px 5%;
    }

    .brand {
        gap: 8px;
        font-size: 16px;
        letter-spacing: -0.35px;
    }

    .logo {
        width: 37px;
        height: 37px;
        border-radius: 11px;
        font-size: 19px;
    }

    .navbar nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 3px;
        padding: 4px;
    }

    .navbar nav a {
        flex: 1;
        padding: 9px 6px;
        font-size: 12px;
        text-align: center;
    }

    .login-btn {
        padding: 10px 12px;
        min-height: 38px;
        font-size: 11px;
    }

    .hero, .section {
        padding: 55px 5%;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .dashboard-preview {
        padding: 17px;
    }

    .stat-card {
        padding: 12px;
    }

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

    footer {
        padding: 22px 5%;
    }
}

/* =========================================
   STUDENT MANAGEMENT — UNCHANGED
   ========================================= */

.student-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 55px 7%;
}

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

.page-heading h1 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
    margin: 8px 0;
}

.page-heading p {
    color: var(--muted);
}

.student-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.student-stat {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 23px;
}

.student-stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.student-stat strong {
    display: block;
    font-size: 34px;
    margin-top: 8px;
}

.student-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.student-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.student-filters input {
    flex: 1 1 260px;
    min-width: 0;
}

.student-filters input,
.student-filters select {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dfe2ec;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.student-filters button {
    border: 0;
    cursor: pointer;
}

.table-wrap {
    overflow-x: auto;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.student-table th,
.student-table td {
    padding: 16px 19px;
    border-bottom: 1px solid #eff0f5;
    font-size: 13px;
}

.student-table th {
    background: #f8f9fd;
    color: #626d82;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.student-table tbody tr:hover {
    background: #fafaff;
}

.student-name {
    font-weight: 700;
}

.student-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
}

.student-badge.active {
    background: #e8f9ef;
    color: #187647;
}

.student-badge.inactive {
    background: #fff0ed;
    color: #b83d2d;
}

.empty-state {
    text-align: center;
    padding: 45px 20px !important;
    color: var(--muted);
}

.table-footer {
    padding: 17px 22px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 650px) {
    .student-page {
        padding: 35px 5%;
    }

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

    .student-stat {
        padding: 17px;
    }

    .student-filters {
        padding: 15px;
    }
}
