
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #243247;
    background: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: white;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: #243247;
}

.hero {
    text-align: center;
    padding: 120px 20px;
    background: #eaf1ff;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    padding: 14px 28px;
    background: #3168c5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

section:not(.hero) {
    padding: 70px 8%;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 34px;
    }
}


/* SIGNUP PAGE */

.signup-page {
    background: #f3f6fb;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: transparent;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    color: #1f3659;
}

.signup-header p {
    font-size: 14px;
    color: #64748b;
}

.signup-header a:not(.logo) {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.signup-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 30px 20px;
}

.signup-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.signup-card h1 {
    text-align: center;
    font-size: 27px;
    margin: 0 0 10px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

.signup-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-card form > label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.signup-card input[type="email"],
.signup-card input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.signup-card input:focus {
    border-color: #2563eb;
}

.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.role-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.role-card input {
    accent-color: #2563eb;
}

.signup-btn {
    margin-top: 14px;
    padding: 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.signup-btn:hover {
    background: #1d4ed8;
}

.signup-footer {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 22px;
}

@media (max-width: 600px) {
    .signup-header {
        padding: 20px;
    }

    .signup-card {
        padding: 25px;
    }
}
[hidden] {
    display: none !important;
}

/* ================================
   THE SKILL CENTER HOMEPAGE
================================ */

.home-page {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #1d2d44;
    line-height: 1.6;
}

.home-page * {
    box-sizing: border-box;
}

.home-page a {
    text-decoration: none;
}

.home-page .site-header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
}

.home-page .navbar {
    max-width: 1150px;
    margin: auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-page .brand {
    color: #1d2d44;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1.5px;
}

.home-page .brand span {
    color: #6185bc;
}

.home-page .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.home-page .nav-links a {
    color: #52627a;
    font-size: 14px;
    font-weight: 500;
}

.home-page .nav-links a:hover {
    color: #274c80;
}

.home-page .nav-links .nav-button {
    background: #244775;
    color: white;
    padding: 11px 19px;
    border-radius: 8px;
}

.home-page .nav-links .nav-button:hover {
    background: #17365e;
    color: white;
}

/* HERO */

.home-page .hero {
    background: #f6f9fd;
    padding: 125px 24px 135px;
    text-align: center;
}

.home-page .hero-content {
    max-width: 750px;
    margin: auto;
}

.home-page .eyebrow {
    color: #6284b3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-page .hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    margin: 22px 0;
    color: #1b304e;
}

.home-page .hero p {
    max-width: 550px;
    margin: 0 auto;
    color: #65758a;
    font-size: 17px;
}

.home-page .hero-buttons {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.home-page .btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.home-page .btn-primary {
    background: #244775;
    color: white;
}

.home-page .btn-primary:hover {
    background: #17365e;
}

.home-page .btn-secondary {
    background: #ffffff;
    color: #244775;
    border: 1px solid #dce5f0;
}

.home-page .btn-secondary:hover {
    background: #edf3fa;
}

/* GENERAL SECTIONS */

.home-page .section {
    max-width: 1150px;
    margin: auto;
    padding: 100px 30px;
}

.home-page .section-heading {
    max-width: 620px;
    margin: 0 auto 50px;
    text-align: center;
}

.home-page .section-heading h2,
.home-page .contact-content h2 {
    font-size: clamp(29px, 4vw, 40px);
    letter-spacing: -1.3px;
    line-height: 1.2;
    margin: 14px 0;
}

.home-page .section-heading p {
    color: #65758a;
    font-size: 16px;
}

/* FEATURE CARDS */

.home-page .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-page .feature-card {
    background: #f8fafd;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 30px;
}

.home-page .feature-number {
    font-size: 13px;
    color: #7392bd;
    font-weight: 700;
}

.home-page .feature-card h3 {
    font-size: 19px;
    margin: 18px 0 10px;
}

.home-page .feature-card p {
    color: #65758a;
    font-size: 14px;
    margin: 0;
}

/* HOW IT WORKS */

.home-page .steps-section {
    border-top: 1px solid #edf0f5;
}

.home-page .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.home-page .step {
    text-align: center;
}

.home-page .step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eaf1fa;
    color: #244775;
    font-weight: 700;
}

.home-page .step h3 {
    margin: 18px 0 8px;
    font-size: 18px;
}

.home-page .step p {
    color: #65758a;
    font-size: 14px;
    margin: 0;
}

/* CONTACT */

.home-page .contact-section {
    background: #f6f9fd;
    padding: 95px 24px;
    text-align: center;
}

.home-page .contact-content {
    max-width: 560px;
    margin: auto;
}

.home-page .contact-content p {
    color: #65758a;
    margin-bottom: 28px;
}

/* FOOTER */

.home-page .site-footer {
    max-width: 1150px;
    margin: auto;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #edf0f5;
}

.home-page .site-footer p {
    font-size: 13px;
    color: #8190a2;
}

/* MOBILE */

@media (max-width: 750px) {
    .home-page .navbar {
        flex-direction: column;
        padding: 18px;
    }

    .home-page .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .home-page .hero {
        padding: 85px 20px;
    }

    .home-page .feature-grid,
    .home-page .steps-grid {
        grid-template-columns: 1fr;
    }

    .home-page .section {
        padding: 70px 22px;
    }

    .home-page .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================
   THE SKILL CENTER LOGIN & SIGNUP
================================ */

.auth-page {
    margin: 0;
    min-height: 100vh;
    background: #f6f9fd;
    color: #1d2d44;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-page * {
    box-sizing: border-box;
}

.auth-page a {
    text-decoration: none;
}

.auth-navbar {
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
    padding: 20px max(24px, calc((100vw - 1090px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-brand {
    color: #1d2d44;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1.5px;
}

.auth-brand span {
    color: #6185bc;
}

.auth-home-link {
    font-size: 14px;
    color: #52627a;
}

.auth-home-link:hover {
    color: #244775;
}

.auth-main {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 42px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 12px 40px rgba(30, 50, 80, 0.04);
}

.auth-heading {
    margin-bottom: 32px;
}

.auth-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6284b3;
}

.auth-heading h1 {
    font-size: 29px;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 12px 0;
}

.auth-heading p {
    color: #65758a;
    font-size: 14px;
    margin: 0;
}

.auth-field {
    margin-bottom: 22px;
}

.auth-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.auth-field input[type="email"],
.auth-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1d2d44;
    font-size: 14px;
    outline: none;
}

.auth-field input:focus {
    border-color: #6185bc;
    box-shadow: 0 0 0 3px rgba(97, 133, 188, 0.12);
}

.auth-field small {
    display: block;
    margin-top: 7px;
    color: #8190a2;
    font-size: 12px;
}

.auth-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-role-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 10px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #52627a;
}

.auth-role-card:has(input:checked) {
    border-color: #6185bc;
    background: #f0f5fc;
    color: #244775;
}

.auth-role-card input {
    accent-color: #244775;
}

.auth-submit {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #244775;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    background: #17365e;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-message {
    font-size: 13px;
    margin-top: 14px;
}

.auth-message:empty {
    display: none;
}

.auth-bottom {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #edf0f5;
    text-align: center;
    font-size: 13px;
    color: #65758a;
}

.auth-bottom a {
    color: #244775;
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }

    .auth-heading h1 {
        font-size: 25px;
    }

    .auth-main {
        padding: 35px 16px;
    }
}

/* ================================
   THE SKILL CENTER DASHBOARD
================================ */

[hidden] {
    display: none !important;
}

.dashboard-page {
    margin: 0;
    min-height: 100vh;
    background: #f6f9fd;
    color: #1d2d44;
    font-family: Arial, Helvetica, sans-serif;
}

.dashboard-page * {
    box-sizing: border-box;
}

.dashboard-page a {
    text-decoration: none;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e8eef5;
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
}

.dashboard-brand {
    color: #1d2d44;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1.5px;
    margin-bottom: 55px;
}

.dashboard-brand span {
    color: #6185bc;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav a {
    color: #66788f;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 8px;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: #edf3fa;
    color: #244775;
}

.dashboard-logout {
    margin-top: auto;
    background: transparent;
    color: #66788f;
    border: 1px solid #e8eef5;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.dashboard-logout:hover {
    background: #f6f9fd;
    color: #244775;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 42px 50px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-topbar a {
    color: #627995;
    font-size: 13px;
}

.dashboard-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #7392bd;
}

.dashboard-welcome {
    margin: 48px 0 32px;
}

.dashboard-welcome h1 {
    margin: 0 0 8px;
    font-size: 36px;
    letter-spacing: -1.5px;
    color: #1b304e;
}

.dashboard-welcome p {
    margin: 0;
    color: #728197;
    font-size: 15px;
}

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

.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-stat-card span {
    color: #66788f;
    font-size: 13px;
}

.dashboard-stat-card strong {
    font-size: 34px;
    line-height: 1;
    color: #244775;
}

.dashboard-stat-card small {
    color: #9aa8b8;
    font-size: 12px;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.dashboard-panel h2 {
    font-size: 21px;
    letter-spacing: -0.5px;
    margin: 10px 0;
}

.dashboard-panel p {
    color: #728197;
    font-size: 14px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

.dashboard-coming-soon {
    white-space: nowrap;
    color: #7392bd;
    background: #edf3fa;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

#dashboard-message {
    color: #66788f;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

#dashboard-message:empty {
    display: none;
}

@media (max-width: 1000px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main {
        padding: 32px 26px;
    }
}

@media (max-width: 650px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 18px;
        border-right: none;
        border-bottom: 1px solid #e8eef5;
    }

    .dashboard-brand {
        margin-bottom: 18px;
    }

    .dashboard-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-nav a {
        padding: 9px 11px;
        font-size: 12px;
    }

    .dashboard-logout {
        margin-top: 18px;
    }

    .dashboard-main {
        padding: 28px 18px;
    }

    .dashboard-welcome {
        margin: 32px 0 24px;
    }

    .dashboard-welcome h1 {
        font-size: 29px;
    }

    .dashboard-stats {
        gap: 12px;
    }

    .dashboard-stat-card {
        padding: 18px;
    }

    .dashboard-panel {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
    }
}

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

.parent-hero-card {
    background: #eaf1fa;
    border: 1px solid #dce8f5;
    border-radius: 14px;
    padding: 34px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.parent-hero-card h2 {
    color: #1b304e;
    font-size: 27px;
    letter-spacing: -0.8px;
    margin: 10px 0;
}

.parent-hero-card p {
    color: #66788f;
    font-size: 14px;
    max-width: 480px;
    margin-bottom: 24px;
}

.parent-primary-link {
    display: inline-block;
    background: #244775;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.parent-primary-link:hover {
    background: #17365e;
}

.parent-hero-decoration {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    background: #dce8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parent-hero-decoration span {
    font-size: 46px;
    color: #7392bd;
}

.parent-section {
    align-items: flex-start;
}

.parent-section-content {
    width: 100%;
    min-width: 0;
}

.parent-search-bar {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    max-width: 600px;
}

.parent-search-bar select {
    flex: 1;
    min-width: 0;
    padding: 13px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1d2d44;
    font-size: 14px;
}

.parent-search-bar button {
    border: none;
    border-radius: 8px;
    background: #244775;
    color: #ffffff;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.parent-search-bar button:hover {
    background: #17365e;
}

.parent-feedback {
    color: #66788f;
    font-size: 13px;
    margin-top: 14px;
}

.parent-feedback:empty {
    display: none;
}

.parent-outline-link {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 18px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    color: #244775;
    font-size: 13px;
    font-weight: 600;
}

.parent-outline-link:hover {
    background: #edf3fa;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 650px) {
    .parent-hero-card {
        padding: 25px;
    }

    .parent-hero-decoration {
        display: none;
    }

    .parent-search-bar {
        flex-direction: column;
    }

    .parent-search-bar button {
        width: 100%;
    }
}

/* ================================
   TUTOR PROFILE EDITOR
================================ */

.profile-form-container {
    width: 100%;
    max-width: 720px;
}

.profile-note {
    background: #f0f5fc;
    border: 1px solid #dce8f5;
    border-radius: 9px;
    padding: 15px 18px;
    color: #526d91;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 30px;
}

.profile-form-container .auth-field {
    margin-bottom: 25px;
}

.profile-form-container .auth-field input,
.profile-form-container .auth-field textarea {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1d2d44;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.profile-form-container .auth-field input:focus,
.profile-form-container .auth-field textarea:focus {
    border-color: #6185bc;
    box-shadow: 0 0 0 3px rgba(97, 133, 188, 0.12);
}

.profile-form-container textarea {
    resize: vertical;
    min-height: 140px;
}

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

.profile-form-container .auth-submit {
    max-width: 220px;
}

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-form-container .auth-submit {
        max-width: none;
    }
}

/* ================================
   TUTOR DIRECTORY
================================ */

.parent-search-bar input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1d2d44;
    font-size: 14px;
}

.parent-search-bar input:focus {
    outline: none;
    border-color: #6185bc;
    box-shadow: 0 0 0 3px rgba(97, 133, 188, 0.12);
}

.tutor-results {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 260px), 1fr)
    );
    gap: 18px;
    margin-top: 24px;
}

.tutor-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 24px;
}

.tutor-card h3 {
    font-size: 20px;
    color: #1b304e;
    margin: 0 0 12px;
}

.tutor-card .tutor-subjects {
    font-size: 13px;
    color: #244775;
    font-weight: 600;
    margin-bottom: 10px;
}

.tutor-card .tutor-details {
    font-size: 13px;
    color: #66788f;
    margin-bottom: 16px;
}

.tutor-card .tutor-bio {
    font-size: 14px;
    color: #52627a;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tutor-card .parent-outline-link {
    margin-top: 18px;
}

.parent-search-bar button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ==================================
   THE SKILL CENTER ADMIN DASHBOARD
================================== */

.admin-page {
    background: #f6f8fc;
    color: #1c304d;
}

.admin-page [hidden] {
    display: none !important;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #142b49;
    color: white;
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.admin-brand span {
    color: #8bb7ee;
}

.admin-sidebar-label {
    margin: 48px 10px 14px;
    color: #94a9c5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav a {
    padding: 13px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #c7d4e7;
    font-size: 14px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #294665;
    color: white;
}

.admin-logout-btn {
    margin-top: auto;
    padding: 13px;
    border: 1px solid #54708f;
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 48px;
}

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

.admin-eyebrow {
    color: #567db2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-header h1 {
    margin: 10px 0;
    font-size: 32px;
    color: #162d4b;
}

.admin-header p {
    color: #738198;
}

.admin-refresh-btn {
    padding: 11px 20px;
    background: white;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    color: #24466e;
    cursor: pointer;
}

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

.admin-stat {
    background: white;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    padding: 24px;
}

.admin-stat span {
    display: block;
    color: #75849a;
    font-size: 13px;
    margin-bottom: 12px;
}

.admin-stat strong {
    font-size: 32px;
    color: #183655;
}

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

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

.admin-section-heading select {
    padding: 11px 15px;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: white;
    color: #24466e;
}

.admin-application-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.admin-tutor-card {
    background: white;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    padding: 26px;
}

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

.admin-tutor-heading h3 {
    font-size: 20px;
    margin: 0;
}

.admin-status {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 100px;
}

.admin-status.pending {
    background: #fff2dc;
    color: #926116;
}

.admin-status.approved {
    background: #e4f5ec;
    color: #21734a;
}

.admin-tutor-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-detail strong {
    font-size: 12px;
    color: #77879d;
}

.admin-detail p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-tutor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #edf1f6;
}

.admin-approve-btn,
.admin-revoke-btn {
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.admin-approve-btn {
    background: #193d68;
    color: white;
    border: none;
}

.admin-revoke-btn {
    background: white;
    color: #a63f45;
    border: 1px solid #e6b8bc;
}

.admin-approve-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-incomplete {
    font-size: 13px;
    color: #a66c26;
}

.admin-empty {
    padding: 35px;
    text-align: center;
    background: white;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    color: #718098;
}

@media (max-width: 800px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        gap: 16px;
    }

    .admin-sidebar-label {
        margin: 10px 0;
    }

    .admin-logout-btn {
        margin-top: 10px;
    }

    .admin-main {
        padding: 24px;
    }

    .admin-header {
        align-items: flex-start;
    }

    .admin-stats {
        gap: 10px;
    }

    .admin-stat {
        padding: 16px;
    }

    .admin-tutor-details {
        grid-template-columns: 1fr;
    }
}

/* Admin dashboard navigation */

.admin-switcher[hidden] {
    display: none !important;
}

.admin-switcher {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-switcher-label {
    color: #91a9c8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.admin-switcher a {
    display: block;
    padding: 11px 14px;
    color: #cbd8e9;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.admin-switcher a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ==============================
   THE SKILL CENTER MESSAGING
============================== */

.messages-page {
    margin: 0;
    background: #f5f7fb;
    color: #17233d;
    font-family: Arial, sans-serif;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: white;
    border-bottom: 1px solid #e4e9f2;
}

.messages-brand {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: #142a52;
}

.messages-brand span {
    color: #497df2;
}

.messages-header > a:last-child {
    color: #426bd0;
    text-decoration: none;
    font-size: 14px;
}

.messages-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    max-width: 1200px;
    height: calc(100vh - 75px);
    min-height: 450px;
    margin: 0 auto;
    background: white;
    border-left: 1px solid #e4e9f2;
    border-right: 1px solid #e4e9f2;
}

.messages-sidebar {
    padding: 24px 16px;
    border-right: 1px solid #e4e9f2;
    overflow-y: auto;
}

.messages-sidebar h2 {
    font-size: 22px;
    margin: 0 0 6px;
}

.messages-sidebar > p {
    font-size: 13px;
    color: #718096;
    margin-bottom: 24px;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conversation-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f5f7fb;
    color: #17233d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.conversation-item:hover {
    background: #edf2fc;
}

.conversation-item.selected {
    background: #e8efff;
    border-color: #a7bff7;
    color: #2455c0;
}

.messages-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.messages-chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e4e9f2;
}

.messages-chat-header h2 {
    font-size: 18px;
    margin: 0;
}

#chat-status {
    font-size: 12px;
    color: #718096;
    margin: 5px 0 0;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.chat-empty {
    color: #8490a5;
    text-align: center;
    margin: auto;
    font-size: 14px;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.chat-bubble p {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    font-size: 14px;
}

.chat-bubble small {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    opacity: 0.7;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: #315fce;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: #eef2f8;
    color: #17233d;
    border-bottom-left-radius: 4px;
}

.message-form {
    display: flex;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid #e4e9f2;
}

.message-form[hidden] {
    display: none;
}

.message-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dce3ef;
    border-radius: 9px;
    padding: 13px;
    font-size: 14px;
    outline: none;
}

.message-form input:focus {
    border-color: #497df2;
}

.message-form button {
    background: #315fce;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
}

.message-form button:hover {
    background: #244eaf;
}

.message-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 650px) {
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-sidebar {
        max-height: 190px;
        border-right: none;
        border-bottom: 1px solid #e4e9f2;
    }

    .messages-chat {
        height: 65vh;
        min-height: 350px;
    }

    .chat-bubble {
        max-width: 90%;
    }

    .message-form {
        padding: 12px;
    }
}

/* ===============================
   THE SKILL CENTER FULL NAME INPUT
================================ */

.name-field {
    margin-bottom: 22px;
}

.name-field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #243b60;
}

.required-star {
    color: #4c7de5;
    margin-left: 3px;
}

.name-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.name-input-icon {
    position: absolute;
    left: 16px;
    color: #91a1b9;
    pointer-events: none;
    transition: color 0.2s ease;
}

.name-input-wrapper input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #dce5f1;
    border-radius: 12px;
    background: #fafcff;
    color: #1b3153;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.name-input-wrapper input::placeholder {
    color: #a0adc0;
}

.name-input-wrapper:hover input {
    border-color: #b5c7e8;
    background: #ffffff;
}

.name-input-wrapper:focus-within input {
    border-color: #4c7de5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 125, 229, 0.12);
}

.name-input-wrapper:focus-within .name-input-icon {
    color: #4c7de5;
}

.name-helper {
    display: block;
    margin-top: 8px;
    color: #8a99af;
    font-size: 11px;
    line-height: 1.5;
}

/* =====================================
   THE SKILL CENTER ACCOUNT PROFILE
===================================== */

.account-profile-card {
    width: 100%;
    max-width: 680px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #e3eaf4;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(20, 45, 78, 0.05);
}

.account-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e9eef5;
}

.account-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3468d4, #7ca5f7);
    color: #ffffff;
    border-radius: 22px;
    font-size: 26px;
    font-weight: 700;
}

.account-profile-header h2 {
    margin: 0 0 6px;
    color: #142d4e;
    font-size: 24px;
}

.account-profile-header p {
    margin: 0;
    color: #8492a8;
    font-size: 14px;
}

.account-profile-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.account-profile-field label {
    color: #243b60;
    font-size: 14px;
    font-weight: 600;
}

.account-profile-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 17px;
    border: 1.5px solid #dce5f1;
    border-radius: 12px;
    background: #fafcff;
    color: #1b3153;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.account-profile-field input:focus {
    border-color: #3468d4;
    box-shadow: 0 0 0 4px rgba(52, 104, 212, 0.12);
}

.account-profile-field input:disabled {
    background: #f1f4f8;
    color: #7b8aa0;
    cursor: not-allowed;
}

.account-profile-field small {
    color: #8a99af;
    font-size: 12px;
}

.account-save-btn {
    padding: 14px 26px;
    border: none;
    border-radius: 11px;
    background: #3468d4;
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.account-save-btn:hover {
    background: #2456b9;
}

.account-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#profile-status {
    margin-top: 16px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .account-profile-card {
        padding: 22px;
    }

    .account-profile-header {
        gap: 14px;
    }

    .account-avatar {
        width: 58px;
        height: 58px;
        font-size: 20px;
        border-radius: 17px;
    }
}

/* =====================================
   THE SKILL CENTER MODERN MESSAGING
===================================== */

.messages-page {
    background: #f5f8fd;
    color: #142d4e;
}

.messages-page .messages-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    width: min(1200px, calc(100% - 48px));
    height: calc(100dvh - 120px);
    min-height: 450px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(20, 45, 78, 0.06);
    overflow: hidden;
}

.messages-page .messages-sidebar {
    min-width: 0;
    background: #fff;
    border-right: 1px solid #e7edf5;
    overflow-y: auto;
}

.messages-sidebar-heading {
    padding: 26px 22px 20px;
    border-bottom: 1px solid #edf1f7;
}

.messages-sidebar-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #142d4e;
}

.messages-sidebar-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8493a9;
}

.messages-page .conversation-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.messages-page .conversation-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 78px;
    padding: 13px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 13px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.messages-page .conversation-item:hover {
    background: #f4f7fd;
}

.messages-page .conversation-item.selected {
    background: #edf3ff;
    border-color: #d8e5ff;
}

.conversation-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #376cda, #85aaf2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.conversation-name {
    overflow: hidden;
    color: #203856;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-date {
    flex-shrink: 0;
    color: #95a3b7;
    font-size: 11px;
    white-space: nowrap;
}

.conversation-preview {
    margin: 0;
    overflow: hidden;
    color: #8291a7;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-empty {
    padding: 22px 12px;
    color: #8291a7;
    font-size: 13px;
    text-align: center;
}

.messages-page .messages-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fbfcff;
}

.messages-page .messages-chat-header {
    display: flex;
    align-items: center;
    min-height: 85px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e7edf5;
    box-sizing: border-box;
}

.chat-header-details {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chat-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: #376cda;
    background: #edf3ff;
    border-radius: 50%;
}

.messages-page #chat-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #142d4e;
}

.messages-page #chat-status {
    margin: 5px 0 0;
    color: #8493a9;
    font-size: 12px;
}

.messages-page #chat-status.error {
    color: #c03434;
}

.messages-page .chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 25px;
    overflow-y: auto;
    box-sizing: border-box;
}

.messages-page .chat-bubble {
    width: fit-content;
    max-width: min(75%, 480px);
    padding: 12px 16px 9px;
    border-radius: 17px;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.messages-page .chat-bubble.mine {
    align-self: flex-end;
    background: #376cda;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.messages-page .chat-bubble.theirs {
    align-self: flex-start;
    background: #fff;
    color: #243b60;
    border: 1px solid #e5ebf4;
    border-bottom-left-radius: 5px;
}

.chat-message-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.chat-message-time {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    text-align: right;
    opacity: 0.7;
}

.messages-page .message-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border-top: 1px solid #e7edf5;
}

.messages-page .message-form[hidden] {
    display: none !important;
}

.messages-page #message-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 17px;
    border: 1.5px solid #e1e8f3;
    border-radius: 12px;
    background: #f8faff;
    color: #243b60;
    font: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.messages-page #message-input:focus {
    border-color: #376cda;
    box-shadow: 0 0 0 3px rgba(55, 108, 218, 0.1);
}

.messages-page #send-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 20px;
    background: #376cda;
    color: #fff;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.messages-page #send-message-btn:hover {
    background: #285ac2;
}

.messages-page #send-message-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.messages-page .chat-empty {
    margin: auto;
    color: #94a2b6;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 750px) {
    .messages-page .messages-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(160px, 34%) minmax(0, 1fr);
        width: calc(100% - 20px);
        height: calc(100dvh - 100px);
        min-height: 450px;
        margin: 10px auto;
        border-radius: 14px;
    }

    .messages-page .messages-sidebar {
        border-right: none;
        border-bottom: 1px solid #e7edf5;
    }

    .messages-sidebar-heading {
        padding: 15px;
    }

    .messages-page .conversation-list {
        padding: 8px;
    }

    .messages-page .conversation-item {
        min-height: 64px;
    }

    .messages-page .messages-chat-header {
        min-height: 65px;
        padding: 12px 15px;
    }

    .messages-page .chat-messages {
        padding: 15px;
    }

    .messages-page .message-form {
        padding: 12px;
    }

    .messages-page #send-message-btn {
        padding: 0 14px;
    }
}

/* =====================================
   THE SKILL CENTER UNREAD MESSAGE BADGES
===================================== */

.messages-page .conversation-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages-page .conversation-name {
    flex: 1;
    min-width: 0;
}

.messages-page .conversation-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #3468d4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.messages-page .conversation-item.has-unread
.conversation-preview {
    font-weight: 600;
    color: #203b67;
}

/* Tutor Dashboard - Edit Profile Button */

.edit-tutor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    background: #3468d4;
    color: #ffffff;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.edit-tutor-btn:hover {
    background: #2456b9;
    transform: translateY(-2px);
}

.edit-tutor-btn:focus-visible {
    outline: 3px solid #8db5ff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .edit-tutor-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =====================================
   THE SKILL CENTER BOOKINGS AND CALENDAR
===================================== */

.booking-page {
    min-height: 100vh;
    background: #f7f9fc;
    color: #142d4e;
}

.booking-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px max(24px, calc((100vw - 1100px) / 2));
    background: white;
    border-bottom: 1px solid #e4eaf3;
}

.booking-brand {
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    color: #142d4e;
}

.booking-brand span {
    color: #3468d4;
}

.booking-container {
    width: min(100% - 32px, 960px);
    margin: 45px auto;
}

.booking-heading {
    margin: 20px 0 30px;
}

.booking-heading h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 10px 0;
}

.booking-heading p {
    color: #75849b;
    line-height: 1.7;
}

.booking-eyebrow {
    color: #3468d4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.booking-card {
    background: white;
    padding: 32px;
    border: 1px solid #e2e9f3;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(20,45,78,.05);
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.booking-field label {
    font-weight: 600;
    font-size: 14px;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1.5px solid #dce5f1;
    border-radius: 11px;
    font: inherit;
    color: #142d4e;
    background: #fafcff;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: #3468d4;
    box-shadow: 0 0 0 4px rgba(52,104,212,.12);
}

.booking-notice {
    padding: 14px;
    border-radius: 10px;
    background: #edf3ff;
    color: #42618e;
    font-size: 13px;
}

.booking-submit,
.booking-actions button,
.booking-calendar-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #3468d4;
    color: white;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.booking-submit:hover,
.booking-actions button:hover,
.booking-calendar-link:hover {
    background: #2456b9;
}

.booking-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.booking-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.booking-item {
    background: #fff;
    border: 1px solid #e2e9f3;
    border-radius: 13px;
    padding: 18px;
}

.booking-item h3 {
    margin: 0 0 8px;
}

.booking-item p {
    color: #72839b;
    font-size: 14px;
}

.booking-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #eef2f7;
}

.booking-confirmed {
    background: #dcfce7;
    color: #166534;
}

.booking-pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-declined,
.booking-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.booking-cancel {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #e4a5a5;
    color: #a52c2c;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.calendar-toolbar button {
    border: 1px solid #dce5f1;
    border-radius: 10px;
    background: white;
    padding: 10px 16px;
    cursor: pointer;
}

.tutorly-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 35px;
}

.calendar-weekday {
    text-align: center;
    color: #7b8ba3;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 0;
}

.calendar-day {
    min-height: 90px;
    padding: 8px;
    background: #fafcff;
    border: 1px solid #e4eaf3;
    border-radius: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.calendar-today {
    border-color: #3468d4;
}

.calendar-event {
    margin-top: 6px;
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    background: #dbeafe;
    color: #1e40af;
}

.calendar-pending {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 650px) {
    .booking-card {
        padding: 18px;
    }

    .calendar-day {
        min-height: 55px;
        padding: 4px;
        font-size: 11px;
    }

    .calendar-event {
        font-size: 9px;
    }
}

/* Shared navigation button: Messages + Calendar */

.tutorly-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #f5f8ff;
    color: #244b83;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s,
                transform .2s;
}

.tutorly-back-btn:hover {
    background: #e7efff;
    border-color: #9bb9eb;
    color: #183c75;
    transform: translateX(-2px);
}

.tutorly-back-btn:focus-visible {
    outline: 3px solid #82aaf5;
    outline-offset: 3px;
}

.tutorly-back-btn span:first-child {
    font-size: 19px;
    line-height: 1;
}

/* Booking participant details */

.booking-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 12px 0;
}

.booking-participants p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #405779;
}

.booking-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.booking-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.booking-actions .booking-decline-btn {
    background: #f0f3f8;
    color: #405779;
    border: 1px solid #dbe4ef;
}

.booking-actions .booking-decline-btn:hover {
    background: #e2e8f0;
}

.booking-actions .booking-cancel {
    background: transparent;
    color: #a52c2c;
    border: 1px solid #e4a5a5;
    margin-top: 0;
}

/* Calendar event details */

.calendar-event {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-wrap: anywhere;
}

.calendar-event strong {
    font-size: 11px;
    font-weight: 700;
}

.calendar-event span {
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .booking-participants {
        flex-direction: column;
        gap: 5px;
    }

    .calendar-event strong,
    .calendar-event span {
        font-size: 9px;
    }
}

/* The Skill Center messaging welcome screen */

.messages-chat {
    min-width: 0;
}

.chat-messages:has(.messages-welcome) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.messages-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 260px;
    padding: 35px 20px;
}

.messages-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    margin-bottom: 22px;

    border-radius: 24px;
    background: #edf4ff;
    color: #3b75d6;

    font-size: 34px;
}

.messages-welcome h2 {
    margin: 0 0 10px;
    color: #182b49;
    font-size: 24px;
    font-weight: 700;
}

.messages-welcome p {
    max-width: 290px;
    margin: 0;
    color: #78869b;
    font-size: 14px;
    line-height: 1.7;
}

/* Hide the input until a chat is selected */

.message-form[hidden] {
    display: none !important;
}

/* Highlight the currently selected conversation */

.conversation-item.selected {
    background: #edf4ff;
    border-radius: 12px;
}

@media (max-width: 650px) {
    .messages-welcome {
        min-height: 300px;
    }

    .messages-welcome h2 {
        font-size: 21px;
    }
}

/* ============================================
   THE SKILL CENTER — MESSAGE RECEIPTS
   Sent / Delivered / Seen
============================================ */

/* Message receipt container */

.messages-page .message-receipt {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    width: 100%;
    margin-top: 7px;

    font-family: inherit;
    font-size: 11px;
    line-height: 1.4;
    user-select: none;
}

/* Checkmark icons */

.messages-page .message-receipt-icon {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -3px;
    padding-right: 3px;
    line-height: 1;
}

/* Receipt labels */

.messages-page .message-receipt-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ============================================
   SENT STATUS
============================================ */

/*
   The user's message bubble is blue,
   so receipts need light-colored text.
*/

.messages-page .chat-bubble.mine
.message-receipt {
    color: rgba(255, 255, 255, 0.72);
}

/* ============================================
   DELIVERED STATUS
============================================ */

.messages-page .chat-bubble.mine
.message-receipt:has(
    .message-receipt-label
) {
    transition: color 0.2s ease;
}

/* ============================================
   SEEN STATUS
============================================ */

/*
   A brighter blue-white signifies Seen
   while remaining readable on blue bubbles.
*/

.messages-page .chat-bubble.mine
.message-receipt.receipt-seen {
    color: #b9e8ff;
}

.messages-page .chat-bubble.mine
.receipt-seen .message-receipt-icon {
    font-weight: 800;
}

/* ============================================
   MESSAGE BUBBLE REFINEMENTS
============================================ */

.messages-page .chat-bubble {
    display: flex;
    flex-direction: column;
    min-width: 70px;
    max-width: min(75%, 480px);
}

.messages-page .chat-bubble.mine {
    align-self: flex-end;
}

.messages-page .chat-bubble.theirs {
    align-self: flex-start;
}

.messages-page .chat-message-text {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.messages-page .chat-message-time {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    text-align: right;
    opacity: 0.7;
}

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


.messages-page .chat-messages:has(.messages-welcome) {
    display: flex;
    align-items: center;
    justify-content: center;
}


.messages-page .messages-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 260px;
    padding: 35px 20px;

    text-align: center;
}

.messages-page .messages-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    margin-bottom: 22px;

    border-radius: 24px;
    background: #edf4ff;
    color: #3b75d6;
}

.messages-page .messages-welcome h2 {
    margin: 0 0 10px;
    color: #182b49;
    font-size: 24px;
    font-weight: 700;
}

.messages-page .messages-welcome p {
    max-width: 290px;
    margin: 0;

    color: #78869b;
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   HIDE MESSAGE INPUT ON WELCOME SCREEN
============================================ */

.messages-page .message-form[hidden] {
    display: none !important;
}

/* ============================================
   SELECTED CONVERSATION
============================================ */

.messages-page .conversation-item.selected {
    background: #edf4ff;
    border-color: #d8e5ff;
    border-radius: 12px;
}

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

@media (max-width: 750px) {

    .messages-page .chat-bubble {
        max-width: 90%;
    }

    .messages-page .message-receipt {
        gap: 6px;
        margin-top: 6px;
    }

    .messages-page .message-receipt-icon {
        font-size: 13px;
    }

    .messages-page .message-receipt-label {
        font-size: 10px;
    }

    .messages-page .messages-welcome {
        min-height: 250px;
        padding: 28px 16px;
    }

    .messages-page .messages-welcome h2 {
        font-size: 21px;
    }
}

/* =========================================
   THE SKILL CENTER THEME + SIDEBAR UPGRADE
   ========================================= */

:root {
  --tui-bg: #f5f7fb;
  --tui-surface: #ffffff;
  --tui-sidebar: #ffffff;
  --tui-text: #172b4d;
  --tui-muted: #68788e;
  --tui-border: #e1e8f1;
  --tui-hover: #edf4ff;
  --tui-accent: #326fdb;
  --tui-input: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --tui-bg: #0b1220;
  --tui-surface: #151f30;
  --tui-sidebar: #111a2a;
  --tui-text: #f1f5f9;
  --tui-muted: #a0aec0;
  --tui-border: #2b3a50;
  --tui-hover: #223451;
  --tui-accent: #74a9ff;
  --tui-input: #1c2a40;
}

/* DASHBOARD FOUNDATIONS */

.dashboard-page {
  background: var(--tui-bg);
  color: var(--tui-text);
}

.dashboard-page .dashboard-main,
.dashboard-page .admin-main {
  background: var(--tui-bg);
  color: var(--tui-text);
}

.dashboard-page .dashboard-sidebar,
.dashboard-page .admin-sidebar {
  background: var(--tui-sidebar);
  border-right: 1px solid var(--tui-border);
  color: var(--tui-text);
}

.dashboard-page .dashboard-brand,
.dashboard-page .admin-brand {
  color: var(--tui-text);
}

.dashboard-page .dashboard-brand span,
.dashboard-page .admin-brand span {
  color: var(--tui-accent);
}

/* SIDEBAR */

.dashboard-page .tui-sidebar {
  width: 255px;
  padding: 28px 18px;
  gap: 0;
}

.tui-sidebar .dashboard-brand,
.tui-sidebar .admin-brand {
  margin: 0 10px 32px;
}

.tui-sidebar .admin-sidebar-label {
  margin: 0 12px 12px;
}

.tui-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tui-nav > a,
.tui-group-items a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  color: var(--tui-muted) !important;
  transition: background 0.15s, color 0.15s;
}

.tui-nav a[data-icon]::before {
  content: attr(data-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  flex: 0 0 19px;
  font-size: 18px;
}

.tui-nav a:hover,
.tui-nav a.active {
  background: var(--tui-hover) !important;
  color: var(--tui-accent) !important;
}

.tui-nav-group {
  margin-top: 4px;
}

.tui-nav-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  color: var(--tui-text);
}

.tui-nav-group summary::-webkit-details-marker {
  display: none;
}

.tui-nav-group summary::after {
  content: "⌄";
  font-size: 20px;
  color: var(--tui-muted);
  transition: transform 0.15s;
}

.tui-nav-group[open] summary::after {
  transform: rotate(180deg);
}

.tui-nav-group summary:hover {
  background: var(--tui-hover);
}

.tui-group-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 8px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--tui-border);
}

.tui-group-items a {
  font-size: 13px;
  padding: 10px;
}

/* THEME SELECTOR */

.tui-theme-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 10px;
  margin-top: auto;
  border-top: 1px solid var(--tui-border);
}

.tui-theme-box label {
  color: var(--tui-muted);
  font-size: 12px;
  font-weight: 700;
}

.tui-theme-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--tui-border);
  border-radius: 10px;
  background: var(--tui-input);
  color: var(--tui-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tui-sidebar .dashboard-logout,
.tui-sidebar .admin-logout-btn {
  margin-top: 8px;
  color: var(--tui-muted);
  border: 1px solid var(--tui-border);
  background: transparent;
  border-radius: 10px;
}

.tui-sidebar .dashboard-logout:hover,
.tui-sidebar .admin-logout-btn:hover {
  background: var(--tui-hover);
  color: var(--tui-text);
}

/* ADMIN SWITCHER */

.tui-sidebar .admin-switcher {
  border-top: 1px solid var(--tui-border);
}

.tui-sidebar .admin-switcher-label {
  color: var(--tui-muted);
}

.tui-sidebar .admin-switcher a {
  color: var(--tui-muted);
}

.tui-sidebar .admin-switcher a:hover {
  background: var(--tui-hover);
  color: var(--tui-text);
}

/* DARK MODE - DASHBOARD CONTENT */

[data-theme="dark"] .dashboard-page :is(
  .dashboard-panel,
  .dashboard-stat-card,
  .parent-hero-card,
  .tutor-card,
  .admin-stat,
  .admin-tutor-card,
  .booking-item,
  .account-profile-card,
  .admin-applications
) {
  background: var(--tui-surface);
  color: var(--tui-text);
  border-color: var(--tui-border);
  box-shadow: none;
}

[data-theme="dark"] .dashboard-page :is(
  h1, h2, h3, h4, strong
) {
  color: var(--tui-text);
}

[data-theme="dark"] .dashboard-page :is(
  p, small, .dashboard-label, .tutor-details,
  .tutor-bio, .parent-feedback
) {
  color: var(--tui-muted);
}

[data-theme="dark"] .dashboard-page :is(
  input, select, textarea
) {
  background: var(--tui-input);
  border-color: var(--tui-border);
  color: var(--tui-text);
}

[data-theme="dark"] .dashboard-page input::placeholder,
[data-theme="dark"] .dashboard-page textarea::placeholder {
  color: #93a4bc;
}

[data-theme="dark"] .dashboard-page :is(
  .dashboard-topbar,
  .admin-header
) {
  border-color: var(--tui-border);
}

[data-theme="dark"] .dashboard-page a:not(.active):not(.parent-primary-link) {
  color: var(--tui-accent);
}

/* MOBILE NAVIGATION */

.tui-mobile-menu {
  display: none;
  border: 1px solid var(--tui-border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--tui-surface);
  color: var(--tui-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 800px) {
  .dashboard-page .dashboard-layout,
  .dashboard-page .admin-layout {
    display: block;
  }

  .dashboard-page .tui-sidebar {
    width: 100%;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid var(--tui-border);
  }

  .tui-mobile-menu {
    display: block;
    margin-bottom: 10px;
  }

  .tui-sidebar .tui-nav,
  .tui-sidebar .tui-theme-box,
  .tui-sidebar .dashboard-logout,
  .tui-sidebar .admin-logout-btn,
  .tui-sidebar .admin-switcher,
  .tui-sidebar .admin-sidebar-label {
    display: none;
  }

  .tui-sidebar.tui-mobile-open .tui-nav {
    display: flex;
  }

  .tui-sidebar.tui-mobile-open .tui-theme-box {
    display: flex;
  }

  .tui-sidebar.tui-mobile-open .dashboard-logout,
  .tui-sidebar.tui-mobile-open .admin-logout-btn,
  .tui-sidebar.tui-mobile-open .admin-switcher,
  .tui-sidebar.tui-mobile-open .admin-sidebar-label {
    display: block;
  }

  .tui-sidebar .dashboard-brand,
  .tui-sidebar .admin-brand {
    margin-bottom: 14px;
  }

  .dashboard-page .dashboard-main,
  .dashboard-page .admin-main {
    width: 100%;
    padding: 24px 18px;
  }
}

/* ==========================================
   ADMIN DASHBOARD DARK MODE FIXES
   ========================================== */

[data-theme="dark"] .admin-page .admin-header {
    background: #151f30 !important;
    color: #f1f5f9 !important;
    border-color: #2b3a50 !important;
}

[data-theme="dark"] .admin-page .admin-header h1 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-page .admin-header p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .admin-page .admin-eyebrow {
    color: #93baff !important;
}

/* Refresh button */

[data-theme="dark"] .admin-page .admin-refresh-btn {
    background: #1c2a40 !important;
    color: #f1f5f9 !important;
    border: 1px solid #34455f !important;
}

[data-theme="dark"] .admin-page .admin-refresh-btn:hover {
    background: #293d5b !important;
}

/* Empty applications message */

[data-theme="dark"] .admin-page .admin-application-list > :only-child {
    background: #1c2a40 !important;
    color: #a0aec0 !important;
    border-color: #34455f !important;
}

/* Application cards and empty states */

[data-theme="dark"] .admin-page .admin-application-list > * {
    border-color: #34455f;
}

[data-theme="dark"] .admin-page .admin-application-list > p,
[data-theme="dark"] .admin-page .admin-application-list > div {
    background-color: #1c2a40 !important;
    color: #f1f5f9 !important;
}

/* General admin text contrast */

[data-theme="dark"] .admin-page .admin-section-heading h2,
[data-theme="dark"] .admin-page .admin-applications h2 {
    color: #f1f5f9 !important;
}

/* The Skill Center's camelCase navigation wordmark and motto. */
.home-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(18px, 2vw, 23px);
    letter-spacing: -0.8px;
    white-space: nowrap;
}
.home-page .brand .brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: none;
}
.home-page .brand .brand-name {
    color: #1d2d44;
}
.home-page .brand-motto {
    font-weight: 650;
    color: #326fdb;
}
