/* Styles.css */
body {
    padding-top: 75px; /* Adjust for the height of the navbar */
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Google Places dropdown inside SweetAlert2 */
.pac-container {
  z-index: 99999 !important;
}

/* SweetAlert container can clip overlays; this helps in some setups */
.swal2-container {
  overflow: visible !important;
}


.wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 1000;
    height: 75px; /* Adjust as needed */
    width: 250px; /* Adjust based on sidebar width */
    
}

.school-logo {
    min-height: 50px;
    max-height: 70px;
    margin-left: 10px;
}

.user-info-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    height: 75px; /* Adjust as needed */
    padding-right: 15px;
    background-color: #fff;
    width: calc(100% - 250px); /* Adjust based on sidebar width */
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
}

/* Navbar styles */
/* Shared background for navbar and sidebar */
.navbar, .sidebar {
    background-color: #2c3e50;  /* Dark blue-grey */
    color: #fff;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1a252f;  /* Optional subtle border */
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 75px; /* Height of navbar */
    left: 0;
    z-index: 999;
    padding-top: 20px;
}

/* Sidebar collapsed */
.sidebar.collapsed {
    width: 60px;
}

/* Sidebar toggle */
#sidebarToggle {
    margin-left: 10px;
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

/* Sidebar list styles */
.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
    text-align: center;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

.sidebar ul li a:hover,
.navbar-dark .dropdown-item:hover {
    background-color: #34495e;  /* Highlight on hover */
    color: #ffffff;
}

/* Dropdown menus */
.navbar-dark .dropdown-menu {
    background-color: #2c3e50;
}

.navbar-dark .dropdown-item {
    color: #fff;
}

.navbar-dark .dropdown-item:hover {
    background-color: #34495e;
    color: #ffffff;
}



.main-content {
    margin-left: 250px; /* Account for the sidebar width */
    padding: 20px;
    flex-grow: 1;
    background-color: #f8f9fa;
}

.main-content.collapsed {
    margin-left: 60px;
}

.content {
    padding: 20px;
    flex: 1;
    text-align: center;
}

footer {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    position: relative;
    bottom: 0;
}

.content-wrapper {
    padding-top: 80px;
    /* adjust if your navbar is taller */
}

@media (max-width: 768px) {
    .sidebar {
        display: 60px;
    }
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
}

.profile-picture {
    width: 75px;
    height: 75px;
    object-fit: cover;
    margin-bottom: 20px;
}

.search-container {
    width: 100%;
    
}

.search-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    padding: 5px;
}

.table-container {
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto;
    margin-top: 10px; /* Adjust if necessary */
    border: 1px solid #ddd; /* Optional: Add border for clarity */
    border-radius: 5px; /* Optional: Add rounded corners */
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    vertical-align: middle;
}

.signature-container {
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.signature-pad {
    border: 1px solid #ccc;
    width: 100%;
    height: 400px;
    max-height: 500px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.clear-button {
    display: block;
    margin: 0 auto; /* Center the button */
    /* margin-top: 10px; */
    padding: 5px 10px; /* Adjust padding */
}

.capture-certification-label {
    display: block;
    margin-bottom: 5px;
    margin-top: 20px;
    font-weight: bold;
}

.container-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Public white-label shell */
.public-shell-page {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 10%, white) 0%, transparent 30%),
        linear-gradient(180deg, color-mix(in srgb, var(--hero-background-color) 70%, white) 0%, var(--background-color) 100%);
    color: var(--body-font-color);
}

.public-shell-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--primary-color) 92%, black 8%);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 78%, white 22%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.public-shell-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 84px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.public-shell-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--navbar-font-color);
}

.public-shell-brand:hover {
    color: var(--navbar-font-color);
    opacity: 0.96;
}

.public-shell-brand__logo {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: block;
}

.public-shell-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.public-shell-brand__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.public-shell-brand__name {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
}

.public-shell-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.public-shell-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--navbar-font-color);
    background: color-mix(in srgb, var(--navbar-font-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--navbar-font-color) 18%, transparent);
    font-weight: 600;
}

.public-shell-nav__link:hover {
    color: var(--navbar-font-color);
    background: color-mix(in srgb, var(--navbar-font-color) 22%, transparent);
}

.public-top-banner {
    background: color-mix(in srgb, var(--background-color) 88%, white);
    color: var(--body-font-color);
    border-bottom: 1px solid color-mix(in srgb, var(--navbar-bg-color) 8%, transparent);
}

.public-top-banner a,
.public-top-banner__link {
    color: var(--primary-color);
    text-decoration: none;
}

.public-top-banner a:hover,
.public-top-banner__link:hover {
    color: color-mix(in srgb, var(--primary-color) 84%, black 16%);
}

.public-site-header.navbar {
    background: var(--primary-color);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.public-site-header .navbar-brand {
    margin-right: 0;
}

.public-site-header__logo {
    max-width: 125px;
    height: auto;
}

.public-site-header__toggler {
    border-color: color-mix(in srgb, var(--collapsible-button-color) 65%, transparent);
    padding: 0.5rem 0.6rem;
}

.public-site-header__toggler:focus {
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--collapsible-button-color) 28%, transparent);
}

.public-site-header__toggler-icon {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--collapsible-button-color);
    position: relative;
}

.public-site-header__toggler-icon::before,
.public-site-header__toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--collapsible-button-color);
}

.public-site-header__toggler-icon::before {
    top: -0.38rem;
}

.public-site-header__toggler-icon::after {
    top: 0.38rem;
}

.public-site-header__link.nav-link {
    color: var(--navbar-font-color);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.public-site-header__link.nav-link:hover,
.public-site-header__link.nav-link:focus {
    color: var(--navbar-font-color);
    opacity: 0.84;
}

.public-shell-main {
    min-height: calc(100vh - 180px);
    padding: 2rem 0 3rem;
}

.public-site-footer {
    background: var(--footer-bg-color);
    color: var(--footer-font-color);
    margin-top: 3rem;
    padding-top: 2.5rem;
}

.public-site-footer a {
    color: var(--footer-font-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.65rem;
}

.public-site-footer a:hover {
    color: var(--footer-font-color);
    text-decoration: underline;
}

.public-site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 1fr));
    gap: 2rem;
    align-items: start;
}

.public-site-footer__brand,
.public-site-footer__column {
    min-width: 0;
}

.public-site-footer__logo {
    width: 120px;
    max-width: 100%;
    display: block;
    margin-bottom: 1rem;
}

.public-site-footer__body {
    margin: 0 0 0.85rem;
    color: var(--footer-font-color);
    opacity: 0.92;
}

.public-site-footer__section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.public-site-footer__social-link {
    color: var(--primary-color);
}

.public-site-footer__social-link:hover {
    color: color-mix(in srgb, var(--primary-color) 84%, black 16%);
}

.public-site-footer__back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.public-site-footer__back-to-top.is-visible {
    display: inline-flex;
}

.public-site-footer__bottom {
    border-top: 1px solid color-mix(in srgb, var(--footer-font-color) 14%, transparent);
    margin-top: 2rem;
    padding: 1.2rem 0 1.5rem;
}

/* Public registration flow sections */
.public-entry-hero,
.public-checkout-page {
    padding-top: 0.5rem;
}

.public-entry-hero__card,
.public-checkout-shell,
.public-entry-scheduler__frame,
.public-flow-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.public-entry-hero__card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.5rem;
    border-radius: 28px;
    padding: 2rem;
}

.public-entry-hero__eyebrow,
.public-flow-section__eyebrow,
.public-checkout-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.95rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 12%, white);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-entry-hero__title,
.public-flow-section__title,
.public-checkout-shell__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: var(--header-font-color);
}

.public-entry-hero__text,
.public-flow-section__text,
.public-checkout-shell__text,
.public-entry-scheduler__text {
    margin: 0;
    color: color-mix(in srgb, var(--body-font-color) 78%, #6b7280);
    font-size: 1.02rem;
}

.public-entry-hero__aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--secondary-color) 16%, white) 0%, color-mix(in srgb, var(--primary-color) 10%, white) 100%);
}

.public-entry-hero__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    font-weight: 700;
}

.public-entry-hero__aside-text {
    margin: 0;
    font-size: 0.97rem;
    color: color-mix(in srgb, var(--body-font-color) 82%, #6b7280);
}

.public-entry-scheduler {
    padding-top: 1rem;
}

.public-entry-scheduler .container {
    max-width: 1180px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.public-entry-scheduler__frame,
.public-checkout-shell {
    border-radius: 28px;
    padding: 1.5rem clamp(1rem, 2.5vw, 2rem) 1.75rem;
}

.public-entry-scheduler__header,
.public-flow-section__intro,
.public-checkout-shell__intro {
    margin: 0 auto 1.25rem;
    max-width: 980px;
}

.public-entry-scheduler__title {
    margin: 0 0 0.5rem;
    color: var(--header-font-color);
    font-size: 1.5rem;
}

.public-entry-scheduler__text {
    max-width: 52rem;
    line-height: 1.55;
}

.public-flow-page {
    padding-top: 1rem;
}

.public-flow-card {
    border-radius: 22px;
}

.public-flow-card__price {
    color: var(--primary-color);
}

.public-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.public-checkout-card {
    border-radius: 24px;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.public-checkout-card__title {
    margin: 0 0 1rem;
    color: color-mix(in srgb, var(--primary-color) 88%, #0f172a);
}

.public-checkout-card,
.public-checkout-card p,
.public-checkout-card li,
.public-checkout-card label,
.public-checkout-card .small {
    color: var(--body-font-color);
}

.public-checkout-card .form-check-label {
    color: var(--body-font-color);
}

.public-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.7rem 0;
}

.public-checkout-summary-row--total {
    font-size: 1.1rem;
}

.public-checkout-divider {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.public-checkout-messages {
    margin-top: 1rem;
}

.public-checkout-message {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: color-mix(in srgb, var(--hero-background-color) 70%, white);
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #d9dee8);
}

.public-payment-option {
    margin-top: 0.85rem;
}

.public-payment-option__label {
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--header-font-color);
}

.public-payment-option__button {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #d9dee8);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.public-payment-option__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.public-payment-option__button--stripe {
    background: linear-gradient(180deg, color-mix(in srgb, var(--secondary-color) 36%, white) 0%, color-mix(in srgb, var(--primary-color) 10%, white) 100%);
}

.public-payment-option__button--manual {
    background: color-mix(in srgb, var(--hero-background-color) 72%, white);
}

.public-payment-option__form + .public-payment-option__form {
    margin-top: 0.75rem;
}

.public-payment-option__error {
    margin-top: 0.5rem;
    color: crimson;
}

.public-payment-help {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--body-font-color) 72%, #6b7280);
}

@media (max-width: 991px) {
    .public-entry-hero__card,
    .public-checkout-grid {
        grid-template-columns: 1fr;
        display: block;
    }

    .public-site-footer__main {
        grid-template-columns: 1fr;
    }

    .public-shell-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-shell-nav {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .public-shell-main {
        padding-top: 1rem;
    }

    .public-entry-hero__card,
    .public-entry-scheduler__frame,
    .public-checkout-shell,
    .public-checkout-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .public-shell-brand__logo {
        max-width: 120px;
        max-height: 56px;
    }

    .public-shell-nav__link {
        width: 100%;
    }

    .public-entry-scheduler__header {
        margin-bottom: 1rem;
    }
}

.video-container, .image-preview-container {
    width: 48%;
    padding: 5px;
    box-sizing: border-box;
}

.video-container video, .image-preview-container img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

.button-container {
    text-align: center;
    margin-top: 10px;
}

/* Ensure buttons are visible in default state */
/* .btn-primary {
    background-color: #007bff; 
    border-color: #007bff;
    color: white; 
}

.btn-primary:hover {
    background-color: #0056b3;
} */

/* Adjust styles for fixed header and scrolling table body in certifications form */
#certifications-table-container .table-container {
    overflow-y: auto;
    max-height: 400px; /* Adjust as needed */
}

#certifications-table-container .table-container th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2; /* Ensure it stays above the table content */
}

#certifications-table-container .table-container td, 
#certifications-table-container .table-container th {
    vertical-align: middle;
    text-align: center;
}



 .navbar-brand .school-logo {
    max-width: 150px;
    height: auto;
} 

/* ===== CALENDAR EVENT SIZE FIX ===== */

/* Ensure the calendar fits its container */
#calendar {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Remove scrolling */
    font-size: 0.9rem; /* Adjust font size for better scaling */
    padding: 0.5rem;
}

/* === FullCalendar: disable internal scrolling === */
#student-scheduler-root .fc-scroller,
#student-scheduler-root .fc-scroller-liquid-absolute {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.student-shell .ss-page-mount {
    margin: -1.5rem -1.5rem -2rem;
}

.student-shell .ss-page--student {
    min-height: 100%;
    background: #f8f9fa;
}

.student-shell .ss-hero {
    background: var(--primary-color);
    color: var(--navbar-font-color);
    padding: 1rem 1rem 1.15rem;
}

.student-shell .ss-hero__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.student-shell .ss-hero__back {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--navbar-font-color);
    flex-shrink: 0;
    font-size: 1.05rem;
}

.student-shell .ss-hero__titles {
    min-width: 0;
    padding-top: 0.15rem;
}

.student-shell .ss-hero__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--navbar-font-color);
}

.student-shell .ss-hero__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: color-mix(in srgb, var(--navbar-font-color) 72%, transparent);
}

.student-shell .ss-instructor-card,
.student-shell .ss-hero__search {
    width: 100%;
    border-radius: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.student-shell .ss-instructor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    margin-top: 1rem;
}

.student-shell .ss-instructor-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.student-shell .ss-instructor-card__avatar,
.student-shell .ss-instructor-card__avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.student-shell .ss-instructor-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #1a2332;
    font-size: 1.15rem;
    font-weight: 800;
}

.student-shell .ss-instructor-card__copy {
    min-width: 0;
}

.student-shell .ss-instructor-card__label {
    font-size: 0.625rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--navbar-font-color) 56%, transparent);
    margin-bottom: 0.15rem;
}

.student-shell .ss-instructor-card__name {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--navbar-font-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-shell .ss-instructor-card__change {
    border: 0;
    border-radius: 10px;
    padding: 0.72rem 0.9rem;
    background: rgba(255, 255, 255, 0.14);
    color: var(--secondary-color);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.student-shell .ss-hero__search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 0.95rem;
    margin-top: 0.85rem;
    color: inherit;
    text-align: left;
}

.student-shell .ss-hero__search:disabled,
.student-shell .ss-instructor-card__change:disabled {
    opacity: 0.72;
}

.student-shell .ss-hero__search-icon {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.student-shell .ss-hero__search-copy {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--navbar-font-color) 74%, transparent);
}

.student-shell .ss-hero__search-chevron {
    color: color-mix(in srgb, var(--navbar-font-color) 56%, transparent);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.student-shell .ss-hero__status {
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: color-mix(in srgb, var(--navbar-font-color) 68%, transparent);
}

.student-shell .ss-page__content {
    padding: 1rem;
}

.student-shell .ss-instructor-picker {
    border: 0.5px solid #e8eaed;
    border-radius: 14px;
    background: #fff;
    padding: 0.95rem;
    margin-bottom: 1rem;
}

.student-shell .ss-instructor-picker__title {
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 0.75rem;
}

.student-shell .ss-instructor-picker__list {
    display: grid;
    gap: 0.55rem;
}

.student-shell .ss-instructor-picker__option {
    border: 0.5px solid #e8eaed;
    border-radius: 12px;
    background: #f8f9fa;
    color: #1a2332;
    text-align: left;
    padding: 0.82rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .student-shell .ss-page-mount {
        margin: -0.5rem -0.85rem -6.6rem;
    }
}


/* Style FullCalendar buttons */
.fc-button {
    font-size: 0.5rem; /* Make buttons smaller */
    padding: 0.2rem 0.4rem; /* Adjust padding */
    border-radius: 4px; /* Slight rounding for a modern look */
}

/* .fc-button-group

.fc .fc-button-primary */

.fc .fc-toolbar-title {
    font-size: 1.25rem; /* Resize title text */
}

/* Ensure FullCalendar grid scales nicely */
/* Adjust grid to make cells more compact */
.fc-daygrid-day-frame {
    min-height: 4rem; /* Reduce height for smaller screens */
}

/* Office / time-grid event readability */
.fc-timegrid-event {
    min-height: 90px !important;
    padding: 6px !important;
    border-radius: 8px !important;
}

.fc-timegrid-event .fc-event-time,
.fc-timegrid-event .fc-event-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

.fc-event-main {
    overflow: visible !important;
}

.fc-timegrid-slot {
    height: 60px !important;
}


/* Highlight upcoming lessons with a blue dot */
.fc-daygrid-event {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 3px;
}

#upcoming-lessons {
    max-height: 300px; /* Scrollable if content exceeds height */
    overflow-y: auto;
}

.list-group-item {
    padding: 0.75rem;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.pickup-feedback {
    font-size: 0.9em;
    margin-top: 5px;
}

.pickup-feedback.text-success {
    color: green;
}

.pickup-feedback.text-danger {
    color: red;
}

/* Ensure modal is hidden by default */
.hidden-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 860px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    overflow: visible;
}

/* Ensure modal content is scrollable if too large */
.hidden-modal .package-list-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    text-align: left;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hidden-modal {
        width: 95%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hidden-modal {
        width: 100%;
        max-width: 350px;
    }
}

/* ✅ Remove unnecessary whitespace and make full use of screen width */
.container {
    max-width: 100% !important; 
    padding-left: 10px !important; 
    padding-right: 10px !important; 
}

.table-responsive {
    overflow: visible !important;
    max-height: none !important;
}

th {
    background-color: #343a40 !important;
    white-space: nowrap; /* Prevents headers from wrapping into multiple lines */
}

td {
    text-align: center; /* Center-aligns text for better readability */
}

.table th, .table td {
    padding: 10px; /* Adds spacing */
}

.table th {
    background-color: #343a40;
    color: white;
    text-transform: capitalize; /* Makes headers look cleaner */
}




/* ✅ Make student table full width and remove gaps */
.student-table {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    table-layout: fixed !important; /* Prevents columns from stretching */
    border-collapse: collapse !important;
}

/* ✅ Style the student table */
.student-table th {
    background-color: #343a40 !important;
    color: white !important;
}

/* ✅ Remove excess space in header and data cells */
.student-table th, .student-table td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 4px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

/* ✅ Adjust column widths */
.student-table th:nth-child(1), .student-table td:nth-child(1) { width: 100px !important; }  /* Registration */
.student-table th:nth-child(2), .student-table td:nth-child(2) { width: 90px !important; }  /* Username */
.student-table th:nth-child(3), .student-table td:nth-child(3) { width: 120px !important; } /* Name */
.student-table th:nth-child(4), .student-table td:nth-child(4) { width: 220px !important; } /* Address */
.student-table th:nth-child(5), .student-table td:nth-child(5) { width: 130px !important; } /* Phone */
.student-table th:nth-child(6), .student-table td:nth-child(6) { width: 200px !important; } /* Email */
.student-table th:nth-child(7), .student-table td:nth-child(7) { width: 150px !important; } /* Parent Name */
.student-table th:nth-child(8), .student-table td:nth-child(8) { width: 120px !important; } /* Parent Phone */
.student-table th:nth-child(9), .student-table td:nth-child(9) { width: 80px !important; } /* Actions */

/* ✅ Remove vertical scrolling */
.student-table-wrapper {
    overflow-x: auto !important; /* Allow left/right scrolling if needed */
    overflow-y: hidden !important; /* Removes vertical scrolling */
}

/* ✅ Reduce button size */
.student-table .btn {
    padding: 4px 6px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* ✅ MOBILE & TABLET RESPONSIVENESS */
@media screen and (max-width: 1200px) {
    .student-table th, .student-table td {
        font-size: 10px !important;
        padding: 3px !important;
    }
    .student-table .btn {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

@media screen and (max-width: 992px) {
    .container {
        padding-left: 5px !important; 
        padding-right: 5px !important; 
    }
    .student-table th, .student-table td {
        font-size: 9px !important;
        padding: 2px !important;
    }
    .student-table .btn {
        font-size: 9px !important;
        padding: 3px 5px !important;
    }
}

@media screen and (max-width: 768px) {
    .student-table-wrapper {
        overflow-x: auto !important; /* Keep horizontal scrolling if needed */
        overflow-y: hidden !important; /* Ensure no vertical scroll */
    }
    .student-table th, .student-table td {
        font-size: 8px !important;
        padding: 2px !important;
    }
}

#studentSearch, #selectInstructor, #getEarliestSlot, #viewInstructorSchedule {
    max-width: 250px;
    width: 100%;
}

#studentSuggestions {
    position: absolute;
    z-index: 1050;
    background-color: #fff;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
    border-radius: 4px;
}

#studentSuggestions .list-group-item.student-option {
    line-height: 1.3;
    font-size: 0.95em;
    padding: 8px 10px;
}

#studentSuggestions .student-option {
    line-height: 1.4;
    font-size: 1em;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left align content */
    gap: 3px; /* slight spacing between lines */
}

#studentSuggestions .student-name {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

#studentSuggestions .student-email,
#studentSuggestions .student-phone {
    display: block;
    font-size: 0.9em;
    color: #555;
}


#studentSuggestions .list-group-item {
    padding: 10px;
    cursor: pointer;
}

#studentSuggestions .list-group-item:hover {
    background-color: #f8f9fa;
}

.col-md-3, .mt-3, .border {
    overflow: visible !important;
    position: relative !important;
}

.border {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

#mini-calendar {
    width: 100%;
    max-width: 250px;
    background-color: #353535;
    border-radius: 8px;
    padding: 10px;
    font-family: Arial, sans-serif;
}

/* ✅ Remove underlines from all dates */
#mini-calendar a {
    text-decoration: none !important;
}

/* ✅ Remove default event background */
#mini-calendar .fc-daygrid-day-events {
    display: none !important;
}

/* ✅ Green Circle Over the Date */
#mini-calendar .fc-daygrid-day.has-events {
    position: relative;
}

/* Reduce toolbar text size */
#mini-calendar .fc-toolbar-title {
    font-size: 10px;
    text-transform: uppercase;
}

#mini-calendar .fc-col-header-cell {
    font-size: 11px;
    padding: .05px;
    color: #fff;
}

#mini-calendar .fc-col-header-cell-cushion {
    color: white; /* ✅ White header text */
    background: black; /* ✅ Keeps contrast visible */
}

#mini-calendar .fc-toolbar {
    font-size: 10px;  /* ✅ Reduce toolbar text size */
    padding: 2px; /* ✅ Less spacing */
}


/* Calendar Header */
#mini-calendar .fc-header-toolbar {
    background-color: #1e1e1e;
    color: #ffffff;
    border-bottom: 1px solid #444;
}

/* Days of the week */
#mini-Calendar .fc-day-header {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
}

/* Highlight Dates with Available Appointments */
#mini-calendar .fc-day[data-has-events="true"] {
    background-color: white;
    border-radius: 50%;
    /* box-shadow: inset 0 0 0 2px green; Green circle around the date */
    color: rgba(0, 0, 0, 0.705);
    font-weight: bold;
}

#mini-calendar .fc-daygrid-day.has-events::after {
    content: "";
    width: 15px; /* ✅ Adjust size for visibility */
    height: 15px;
    border-radius: 50%;
    background-color: green;
    position: absolute;
    bottom: 6px; /* ✅ Aligns with date */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 1;
}

/* Days of the week */
#mini-Calendar .fc-day-header {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
}

/* Selected Date */
#mini-Calendar .fc-day-today {
    background-color: #2196f3 !important; /* Blue highlight */
    color: #ffffff;
    border-radius: 50%;
}

/* Open Dates (Highlighted in Green) */
#mini-Calendar .fc-day.open-slot {
    background-color: #4caf50 !important; /* Green highlight */
    color: #ffffff;
    border-radius: 50%;
}

/* Hover Effect */
#mini-Calendar .fc-day:hover {
    background-color: #333 !important;
    cursor: pointer;
}

/* Navigation Buttons */
#mini-Calendar .fc-button {
    background-color: #333;
    color: #ffffff;
    border: 1px solid #555;
}

#mini-Calendar .fc-button:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    #mini-calendar {
        max-width: 100%;
        font-size: 10px;
    }
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;  
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* ✅ Highlight the selected day in FullCalendar */
.fc-day.highlighted-day {
    background-color: rgba(255, 223, 0, 0.3) !important; /* Light yellow highlight */
    border: 4px solid #FFD700 !important; /* Gold border */
}

/* ✅ Highlight the selected time slot */
.fc-timegrid-slot.highlighted-time {
    background-color: rgba(255, 223, 0, 0.5) !important; /* Slightly darker transparent yellow */
    border: 4px solid #FFD700 !important; /* Gold border */
}

/* ✅ Highlight selected time slot */
.fc-timegrid-slot.highlighted-time {
    background-color: rgba(255, 223, 0, 0.5) !important; /* Slightly darker transparent yellow */
    border: 2px solid #FFD700 !important; /* Gold border */
}

.fc-timegrid-slot {
    height: 35px !important; /* Adjust to your preferred height */
}


/* ✅ Improve button styling for schedule list */
.schedule-btn {
    font-size: 12px;
    padding: 3px 7px;
}

#openTimeslotsList {
    display: none;
    max-width: 285px;
    max-height: 250px;  /* ✅ Set a fixed height to enable scrolling */
    overflow-y: auto;   /* ✅ Enable vertical scrolling */
    border: 1px solid #ddd; /* ✅ Light border for a cleaner look */
    padding: 5px;  /* ✅ Reduce excessive white space */
}

#openTimeslotsList ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#openTimeslotsList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;  /* ✅ Reduce space */
    border-bottom: 1px solid #ddd;  /* ✅ Light separator */
    background-color: #f9f9f9;  /* ✅ Light grey default */
}

#openTimeslotsList li:nth-child(even) {
    background-color: #ffffff;  /* ✅ White for alternate rows */
}

.schedule-btn {
    padding: 4px 10px;  /* ✅ Reduce padding */
    font-size: 0.85rem;  /* ✅ Adjust font size */
}

/* ✅ Scrollable container */
.scroll-container {
    max-height: 200px; /* ✅ Limit height */
    overflow-y: auto;  /* ✅ Enable scrolling */
    border: 1px solid #ddd; /* ✅ Light border */
    padding: 5px;
}

/* ✅ Alternate row colors */
.even-row {
    background-color: #f8f9fa; /* ✅ Light grey */
}
.odd-row {
    background-color: #ffffff; /* ✅ White */
}

/* ✅ Reduce white space & button padding */
.list-group-item {
    padding: 8px 10px;  /* ✅ Less padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ✅ Reduce space between button and text */
.slot-text {
    flex-grow: 1;
    padding-right: 10px; /* ✅ Space between text and button */
}

.schedule-btn {
    padding: 5px 10px; /* ✅ Smaller button padding */
    font-size: 0.85rem; /* ✅ Reduce font size */
}

#studentDropdown {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Hide dropdown by default */
    z-index: 10;
}

/* Ensure selected option is visible */
.student-option {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.student-option:hover {
    background: #f1f1f1;
}

.fc-col-header-cell-cushion{
    color: rgba(255, 255, 255, 0.944);
    text-decoration: none;
}

/* Highlight available dates */
.has-availability {
    background-color: #d4edda !important;  /* Light green */
    border-radius: 50%;
}

/* Selected date styling */
.fc-daygrid-day-selected {
    background-color: #007bff !important;
    color: white !important;
}

.available-date {
    background-color: green !important;
    color: white !important;
    border-radius: 50%;
    text-align: center;
}

/* Ensure calendar is properly sized */
#mini-calendar {
    max-width: 300px; /* Adjust as needed */
    margin: 0 auto;
}

/* MULTI-INSTRUCTOR VIEW STYLING ONLY */
.multi-instructor-view .fc-col-header-cell-cushion {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: block;
}

.multi-instructor-view .fc-datagrid-cell-main {
    font-weight: bold;
}

/* Make the calendar container flexible */
.multi-instructor-view #calendar-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.multi-instructor-view #calendar {
    min-width: 2000px; /* Forces horizontal scroll */
}

/* Instructor headers */
.multi-instructor-view .fc-col-header-cell-cushion {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: block;
    text-align: center;
}

/* Force width on instructor columns */
.multi-instructor-view .fc-datagrid-cell-main,
.multi-instructor-view .fc-resource {
    min-width: 180px !important;
    max-width: 200px;
}


/* Optional: Tweak time column width */
.multi-instructor-view .fc-timegrid-slot-label {
    min-width: 60px;
}

.appointments-scroll::-webkit-scrollbar {
    height: 6px;
  }
  .appointments-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
  

@media (max-width: 576px) {
    .card-body p {
      margin-bottom: 0.4rem;
    }
  
    .card-body {
      padding: 1rem;
    }
  }
  
#instructor-calendar .fc-event-title {
    display: none;
}
#instructor-calendar .fc-event {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.dashboard-card {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: #0d6efd;
}

body {
  background-color: #f8f9fa !important;
  padding-bottom: 70px;
}

.card-header {
  font-weight: 600;
  font-size: 1.1rem;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

main.container {
  min-height: calc(100vh - 70px); /* 70px = footer height */
  padding-bottom: 70px !important;/
}

.navbar.fixed-bottom {
  width: 100%;
  z-index: 1030;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

/* =========================================================
   Office – Student Roster Table (Readability Upgrade)
   ========================================================= */

.student-table-wrapper {
  overflow-x: auto;
}

/* Increase overall table readability */
.student-table {
  font-size: 16px;
  line-height: 1.3;
}

/* Cell spacing + alignment */
.student-table th,
.student-table td {
  padding: 0.7rem 0.9rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Header clarity */
.student-table thead th {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Actions column */
.student-table td:last-child {
  min-width: 220px;
  white-space: normal;
}

/* Buttons inside table */
.student-table .btn.btn-sm {
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
}


/* =========================================================
   Office – Student Details Modal Scrolling
   ========================================================= */

/* Allow modal body to grow and scroll correctly */
#studentDetailsModal .modal-body {
  max-height: 75vh;
  overflow-y: auto;
}

/* Scroll view container */
#detailsScrollHost {
  max-height: none;        /* let modal-body control height */
  overflow-y: visible;
}

/* Tabs container (when active) */
#detailsTabsHost {
  max-height: none;
}

/* ===========================
   Student appointments layout fix
   Scope: appointments page only
   =========================== */

.student-appointments-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* If global CSS is forcing fixed widths / sidebar math, undo it here */
.student-appointments-page .row,
.student-appointments-page .col,
.student-appointments-page .container,
.student-appointments-page .container-fluid {
    width: 100%;
    max-width: 100%;
}

/* Ensure list-group items don't compress into tiny columns */
.student-appointments-page .list-group-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Mobile-first: stack fields cleanly */
.student-appointments-page .appt-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .student-appointments-page .appt-card {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* Make button row stay together */
.student-appointments-page .appt-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ===========================
   Student shell: fix fixed header overlap
   =========================== */

/* Mobile-first: disable the fixed right header panel that causes overlap */
.student-shell .user-info-container {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
}

/* Ensure main content starts below fixed navbar (if navbar stays fixed) */
.student-shell .container-fluid {
    padding-top: 12px;
    /* approximate navbar height on mobile */
}

@media (max-width: 768px) {
    .student-shell .container-fluid {
        padding-top: 16px;
    }
}

/* If your navbar is fixed, keep it. If it's not fixed, this doesn't hurt much */
.student-shell .navbar {
    position: sticky;
    /* safer than fixed for mobile */
    top: 0;
    z-index: 1050;
}

/* Sidebar should NOT be fixed on small screens */
@media (max-width: 768px) {

    .student-shell .sidebar,
    .student-shell .logo-container {
        position: static !important;
        width: 100% !important;
    }

    .student-shell .row.flex-nowrap {
        flex-wrap: wrap !important;
    }
}

.student-shell h1,
.student-shell h2,
.student-shell h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

.student-shell .list-group-item {
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 14px;
}

.student-shell .card,
.student-shell .list-group-item {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* Student navbar readability */
.student-shell .navbar,
.student-shell .navbar * {
    color: var(--navbar-font-color, #111) !important;
}

.student-shell .navbar .nav-link {
    color: var(--navbar-font-color, #111) !important;
}

.student-shell .navbar .navbar-brand {
    color: var(--navbar-font-color, #111) !important;
}

/* Make the hamburger visible on dark navbars */
.student-shell .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

.student-shell .navbar-toggler-icon {
    filter: invert(1) grayscale(1);
    /* helps if navbar is dark */
}

/* Modernize student pages (subtle, fast) */
.student-shell body {
    background: #f5f6f8;
}

.student-shell .list-group-item,
.student-shell .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.student-shell h2,
.student-shell h3 {
    font-weight: 700;
}

/* Student portal white-label shell */
.student-shell {
    --sp-sidebar-w: 292px;
    --sp-mobile-nav-h: 84px;
    --sd-mobile-x: 14px;
    --sd-mobile-shell-x: 0.85rem;
    --sp-shell-dark: color-mix(in srgb, var(--primary-color) 92%, #07111d 8%);
    --sp-shell-text: var(--navbar-font-color);
    --sp-sidebar-text: var(--sp-shell-text);
    --sp-accent: var(--secondary-color);
    --sp-border-soft: color-mix(in srgb, var(--primary-color) 12%, #d6deea);
    --sp-page-bg: #f5f6f8;
}

.student-shell body,
body.student-shell {
    font-family: 'Inter', sans-serif;
    background: var(--sp-page-bg);
    color: var(--body-font-color);
}

.student-shell .sp-shell-avatar-fallback {
    display: none !important;
}

.student-shell .sp-shell-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #172033;
    font-size: 1.02rem;
    font-weight: 900;
    flex-shrink: 0;
}

.student-shell .sp-shell-avatar--brand {
    width: 54px;
    height: 54px;
}

.student-shell .sp-sidebar {
    width: var(--sp-sidebar-w);
    min-height: 100vh;
    background: var(--sp-shell-dark);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: none;
}

.student-shell .sp-sidebar-brand {
    padding: 1.5rem 1.15rem 1.1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--sp-sidebar-text) 10%, transparent);
}

.student-shell .sp-sidebar-brand__top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: center;
}

.student-shell .sp-sidebar-brand__mark {
    display: grid;
    gap: 0.55rem;
    justify-items: start;
}

.student-shell .sp-sidebar-brand__dot,
.student-shell .sp-mobile-bar__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px color-mix(in srgb, #22c55e 12%, transparent);
}

.student-shell .sp-offcanvas__logo,
.student-shell .sp-mobile-bar__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.35rem;
    flex-shrink: 0;
}

.student-shell .sp-sidebar-brand__copy {
    min-width: 0;
}

.student-shell .sp-sidebar-brand .badge-label {
    display: inline-block;
    color: color-mix(in srgb, var(--sp-sidebar-text) 60%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    padding: 0;
}

.student-shell .sp-sidebar-brand .portal-name {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--sp-sidebar-text);
    margin-top: 0.35rem;
    line-height: 1.2;
}

.student-shell .sp-sidebar-brand .student-name {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: color-mix(in srgb, var(--sp-sidebar-text) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--sp-sidebar-text) 10%, transparent);
}

.student-shell .student-name__eyebrow {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--sp-sidebar-text) 58%, transparent);
    margin-bottom: 0.2rem;
}

.student-shell .student-name__value {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--sp-sidebar-text);
}

.student-shell .sp-nav {
    padding: 1rem 0;
    flex: 1;
}

.student-shell .sp-nav__section {
    padding: 0 0.9rem;
}

.student-shell .sp-nav__label,
.student-shell .sp-offcanvas__eyebrow {
    padding: 0 0.35rem 0.55rem;
    color: color-mix(in srgb, var(--sp-sidebar-text) 52%, transparent);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-shell .sp-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.92rem 1rem;
    color: color-mix(in srgb, var(--sp-sidebar-text) 80%, transparent);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    border-left: none;
    border-radius: 18px;
    transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.student-shell .sp-nav a:hover,
.student-shell .sp-nav a.active {
    background: color-mix(in srgb, var(--sp-sidebar-text) 12%, transparent);
    color: var(--sp-sidebar-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp-sidebar-text) 6%, transparent);
    transform: translateY(-1px);
}

.student-shell .sp-nav a i {
    font-size: 1.05rem;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--sp-sidebar-text) 9%, transparent);
}

.student-shell .sp-nav .sp-nav-link--accent {
    color: color-mix(in srgb, var(--sp-accent) 72%, white);
}

.student-shell .sp-nav .sp-nav-link--accent:hover,
.student-shell .sp-nav .sp-nav-link--accent.active {
    color: var(--sp-sidebar-text);
}

.student-shell .sp-nav-divider {
    height: 1px;
    background: color-mix(in srgb, var(--sp-sidebar-text) 10%, transparent);
    margin: 0.9rem 1.25rem;
}

.student-shell .sp-sidebar-footer {
    padding: 1rem 1.15rem 1.2rem;
    border-top: 1px solid color-mix(in srgb, var(--sp-sidebar-text) 10%, transparent);
}

.student-shell .sp-sidebar-footer__primary {
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--sp-sidebar-text) 72%, transparent);
    margin-bottom: 0.25rem;
}

.student-shell .sp-sidebar-footer__secondary {
    font-size: 0.74rem;
    color: color-mix(in srgb, var(--sp-sidebar-text) 46%, transparent);
}

.student-shell .sp-main {
    margin-left: var(--sp-sidebar-w);
    min-height: 100vh;
    padding: 1.5rem 1.5rem 2rem;
}

.student-shell .sp-mobile-bar {
    display: none;
}

.student-shell .sp-mobile-bar__brand,
.student-shell .sp-offcanvas__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-shell .sp-mobile-bar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.student-shell .sp-mobile-bar__eyebrow {
    color: color-mix(in srgb, var(--sp-sidebar-text) 68%, transparent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.student-shell .sp-mobile-bar__portal {
    color: var(--sp-sidebar-text);
    font-size: 1rem;
    font-weight: 900;
}

.student-shell .sp-mobile-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.student-shell .sp-mobile-bar__toggle {
    border-color: color-mix(in srgb, var(--sp-sidebar-text) 32%, transparent);
    color: var(--sp-sidebar-text);
    border-radius: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.student-shell .sp-mobile-bar__toggle:hover {
    background: color-mix(in srgb, var(--sp-sidebar-text) 12%, transparent);
    color: var(--sp-sidebar-text);
}

.student-shell .sp-offcanvas {
    background: var(--sp-shell-dark);
    max-width: 292px;
    color: var(--sp-sidebar-text);
}

.student-shell .sp-offcanvas .offcanvas-title {
    color: var(--sp-sidebar-text);
}

.student-shell .sp-mobile-nav {
    display: none;
}

@media (max-width: 991px) {
    .student-shell .sp-sidebar {
        display: none;
    }

    .student-shell .sp-main {
        margin-left: 0;
        padding: 0.5rem 1rem 6.6rem;
    }

    .sd-page {
        margin: -0.5rem -1rem 0;
    }

    .student-shell .sp-mobile-bar {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 200;
        background: var(--sp-shell-dark);
        padding: 0.9rem 1rem 0.35rem;
        align-items: center;
        justify-content: space-between;
        border-bottom: 0;
        box-shadow: none;
    }

    .student-shell .sp-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: var(--sp-mobile-nav-h);
        z-index: 220;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: none;
    }

    .student-shell .sp-mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.32rem;
        color: #8a99b3;
        text-decoration: none;
        font-size: 0.76rem;
        font-weight: 700;
        padding: 0.3rem 0.2rem;
    }

    .student-shell .sp-mobile-nav a i {
        font-size: 1.15rem;
    }

    .student-shell .sp-mobile-nav a.active {
        color: var(--primary-color);
    }
}

@media (max-width: 767px) {
    .student-shell .sp-mobile-bar {
        padding-top: calc(0.45rem + env(safe-area-inset-top));
    }

    .student-shell .sp-main {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .sd-page {
        margin-left: calc(-1 * var(--sd-mobile-shell-x));
        margin-right: calc(-1 * var(--sd-mobile-shell-x));
    }
}

/* Student dashboard */
.student-shell {
    --sd-brand: var(--primary-color);
    --sd-brand-soft: color-mix(in srgb, var(--primary-color) 10%, white);
    --sd-brand-outline: color-mix(in srgb, var(--primary-color) 18%, white);
    --sd-card-radius: 16px;
}

.sd-top-band {
    background: var(--sp-shell-dark);
}

.sd-top-band__inner,
.sd-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 14px;
    padding-right: 14px;
}

.sd-top-band__inner {
    padding-top: 8px;
    padding-bottom: 1rem;
}

.sd-wrap {
    padding-top: 1rem;
    padding-bottom: 90px;
}

.sd-stack-section {
    margin-bottom: 1rem;
}

.sd-feedback-stack {
    margin-bottom: 1rem;
}

.sd-service-banner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--secondary-color) 24%, white);
    background: color-mix(in srgb, var(--secondary-color) 12%, white);
    color: var(--body-font-color);
    margin-bottom: 1rem;
}

.sd-service-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--secondary-color) 24%, white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sd-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    margin-top: -0.35rem;
    margin-bottom: 0.7rem;
}

.sd-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #ffffff 62%, transparent);
}

.sd-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
}

.sd-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.sd-hero p {
    margin: 0.3rem 0 0;
    color: color-mix(in srgb, #ffffff 68%, transparent);
    font-size: 1.05rem;
}

.sd-hero__avatar-wrap {
    flex-shrink: 0;
}

.sd-hero__avatar-img,
.sd-hero__avatar-fallback {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: #1d2433;
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--secondary-color) 24%, transparent);
}

.sd-progress-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "content ring"
        "bar bar"
        "caption caption"
        "deadline deadline";
    column-gap: 1rem;
    row-gap: 0.55rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 28px;
    border: 1px solid rgba(26, 35, 50, 0.08);
    background: #F8F9FA;
    color: #1a2332;
    box-shadow: none;
    margin-bottom: 1rem;
    max-width: 720px;
}

.sd-progress-hero__content {
    grid-area: content;
    min-width: 0;
}

.sd-section-kicker {
    color: #71829d;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.sd-progress-hero__title {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: #1a2332;
}

.sd-progress-hero__title span {
    font-size: 0.68em;
    font-weight: 600;
    color: #71829d;
}

.sd-progress-hero__bar {
    grid-area: bar;
    height: 9px;
    border-radius: 999px;
    background: #e8eaed;
    overflow: hidden;
}

.sd-progress-hero__fill {
    height: 100%;
    width: var(--sd-progress-width, 0%);
    background: #F59E0B;
    border-radius: inherit;
}

.sd-progress-hero__caption {
    grid-area: caption;
    margin: 0.65rem 0 0;
    color: #71829d;
    font-size: 0.92rem;
}

.sd-progress-ring {
    grid-area: ring;
    --sd-ring-angle: calc(var(--sd-progress-percent, 0) * 3.6deg);
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background:
        conic-gradient(#F59E0B 0deg, #F59E0B var(--sd-ring-angle), #e8eaed var(--sd-ring-angle), #e8eaed 360deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.sd-progress-ring__inner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a2332;
    font-weight: 900;
    font-size: 0.98rem;
}

.sd-progress-hero__deadline {
    grid-area: deadline;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.85rem;
    margin-top: 0.1rem;
    border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.sd-progress-hero__deadline-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    font-size: 1rem;
}

.sd-progress-hero__deadline-title {
    color: #1a2332;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.2;
}

.sd-progress-hero__deadline-note {
    margin-top: 0.15rem;
    color: #8b9ab2;
    font-size: 0.82rem;
    line-height: 1.25;
}

body.student-shell .sd-progress-hero--light {
    background: #F8F9FA !important;
    border: 1px solid rgba(26, 35, 50, 0.08) !important;
    color: #1a2332 !important;
}

body.student-shell .sd-progress-hero--light .sd-section-kicker {
    color: #71829d !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__title {
    color: #1a2332 !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__title span {
    color: #71829d !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__caption {
    color: #71829d !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__bar {
    background: #e8eaed !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__fill {
    background: #F59E0B !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-ring {
    background: conic-gradient(#F59E0B 0deg, #F59E0B var(--sd-ring-angle), #e8eaed var(--sd-ring-angle), #e8eaed 360deg) !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-ring__inner {
    background: #ffffff !important;
    color: #1a2332 !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__deadline {
    border-top: 1px solid rgba(26, 35, 50, 0.08) !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__deadline-icon {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #F59E0B !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__deadline-title {
    color: #1a2332 !important;
}

body.student-shell .sd-progress-hero--light .sd-progress-hero__deadline-note {
    color: #8b9ab2 !important;
}

.sd-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
    background: transparent;
}

.sd-stat-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(14, 25, 48, 0.08);
    border-radius: 22px;
    padding: 0.8rem 0.7rem;
    text-align: center;
    box-shadow: none;
}

.sd-stat-card__value {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
}

.sd-stat-card__value--completed {
    color: #1f2937;
}

.sd-stat-card__value--remaining {
    color: #f59e0b;
}

.sd-stat-card__value--upcoming {
    color: #4a7ef0;
}

.sd-stat-card__label {
    margin-top: 0.35rem;
    color: #8b9ab2;
    font-size: 0.82rem;
    font-weight: 600;
}

.sd-next-card {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.45rem;
    border-radius: 28px;
    background: #232c42;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: none;
}

.sd-next-card__title {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.sd-next-card__meta,
.sd-next-card__subtext {
    color: color-mix(in srgb, #ffffff 68%, transparent);
    font-size: 0.82rem;
}

.sd-next-card__inline-label {
    color: inherit;
    font-weight: 900;
}

.sd-next-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.sd-inline-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--secondary-color) 18%, #322b29);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.8rem;
}

.sd-inline-chip--success {
    background: rgba(18, 147, 87, 0.2);
    color: #22c55e;
}

.sd-inline-chip--warning {
    background: rgba(243, 173, 43, 0.18);
    color: #f5b23a;
}

.sd-next-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.95rem;
}

body.student-shell .sd-next-card--light {
    background: #fff !important;
    border: 1px solid rgba(26, 35, 50, 0.08) !important;
    color: #1a2332 !important;
}

body.student-shell .sd-next-card--light .sd-section-kicker,
body.student-shell .sd-next-card--light .sd-next-card__title {
    color: #f99e00 !important;
}

body.student-shell .sd-next-card--light .sd-next-card__meta,
body.student-shell .sd-next-card--light .sd-next-card__subtext {
    color: #71829d !important;
}

body.student-shell .sd-next-card--light .sd-inline-chip {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #d28710 !important;
}

body.student-shell .sd-next-card--light .sd-inline-chip--success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #198754 !important;
}

body.student-shell .sd-next-card--light .sd-inline-chip--warning {
    background: rgba(245, 178, 58, 0.16) !important;
    color: #d28710 !important;
}

body.student-shell .sd-next-card--light .sd-btn-pill--solid {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

body.student-shell .sd-next-card--light .sd-btn-pill--solid:hover {
    background: color-mix(in srgb, var(--primary-color) 88%, black) !important;
    border-color: color-mix(in srgb, var(--primary-color) 88%, black) !important;
    color: #fff !important;
}

body.student-shell .sd-next-card--light .sd-btn-pill--muted {
    background: #eef1f4 !important;
    border-color: #e1e5ea !important;
    color: #7c879a !important;
}

body.student-shell .sd-next-card--light .sd-btn-pill--muted:hover {
    background: #e7ebf0 !important;
    border-color: #d9dee5 !important;
    color: #5f697a !important;
}

.sd-btn-pill--solid {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1d2433;
}

.sd-btn-pill--solid:hover {
    background: color-mix(in srgb, var(--secondary-color) 86%, #1d2433);
    border-color: color-mix(in srgb, var(--secondary-color) 86%, #1d2433);
    color: #1d2433;
}

.sd-btn-pill--muted {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: color-mix(in srgb, #ffffff 64%, transparent);
}

.sd-btn-pill--muted:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sd-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.sd-inline-link {
    color: #F59E0B;
    font-weight: 900;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
}

.sd-upcoming-card {
    border-radius: 24px;
    box-shadow: none;
}

.sd-upcoming-list {
    display: grid;
    gap: 0.6rem;
}

.sd-upcoming-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: #fbfbfd;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: inset 4px 0 0 #f59e0b;
}

.sd-upcoming-item__time {
    min-width: 72px;
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.sd-upcoming-item__time strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.sd-upcoming-item__time-end {
    margin-top: 0.12rem;
}

.sd-upcoming-item__time span,
.sd-upcoming-item__meta {
    color: #8b9ab2;
    font-size: 0.76rem;
}

.sd-upcoming-item__time span {
    margin-top: 0.22rem;
}

.sd-upcoming-item__title {
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 900;
    color: #1f2937;
}

.sd-upcoming-item__body {
    min-width: 0;
}

.sd-upcoming-item__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
    align-self: start;
}

.sd-upcoming-item__status--success {
    background: rgba(34, 197, 94, 0.12);
    color: #198754;
}

.sd-upcoming-item__status--warning {
    background: rgba(245, 178, 58, 0.16);
    color: #d28710;
}

.sd-ghost-action {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.95rem;
    min-height: 56px;
    border-radius: 18px;
    border: 2px dashed rgba(15, 23, 42, 0.08);
    background: #fbfbfd;
    color: #b3bdcf;
    text-decoration: none;
    font-weight: 700;
}

.sd-permit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    padding: 1rem 1.05rem;
    box-shadow: none;
}

.sd-permit-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.sd-permit-card__title {
    font-size: 1.1rem;
    font-weight: 900;
}

.sd-permit-card__meta {
    color: #8b9ab2;
    font-size: 0.96rem;
    margin-top: 0.2rem;
}

.sd-permit-card__body {
    flex: 1;
}

.sd-permit-card__chevron {
    color: #c4cddc;
    font-size: 1.15rem;
}

.sd-grid--student .sd-action {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    min-height: 118px;
}

.sd-action__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
}

.sd-action__icon--messages {
    background: rgba(80, 114, 255, 0.12);
    color: #4a7ef0;
}

.sd-action__icon--history {
    background: rgba(41, 163, 103, 0.12);
    color: #21905f;
}

.sd-action__icon--billing {
    background: rgba(245, 178, 58, 0.14);
    color: #d28710;
}

.sd-action__icon--tracking {
    background: rgba(239, 68, 68, 0.1);
    color: #dc4f4f;
}

.sd-action__body {
    min-width: 0;
}

.sd-action-disabled {
    opacity: 0.86;
}

.sd-latest-eval {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    background: #f7f8fb;
    border-radius: 18px;
    padding: 0.8rem 0.9rem;
}

.sd-latest-eval__score {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #F59E0B;
    color: #1f2739;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
}

.sd-latest-eval__title {
    font-size: 0.96rem;
    line-height: 1.1;
    font-weight: 900;
    color: #1f2937;
}

.sd-latest-eval__meta {
    margin-top: 0.18rem;
    color: #8b9ab2;
    font-size: 0.83rem;
}

.sd-latest-eval__body {
    min-width: 0;
}

.sd-latest-eval__accent {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.22rem;
    justify-self: end;
    align-self: center;
}

.sd-latest-eval__accent span {
    width: 6px;
    border-radius: 999px;
    background: #F59E0B;
    display: block;
}

.sd-latest-eval__accent span:nth-child(1) {
    height: 22px;
}

.sd-latest-eval__accent span:nth-child(2) {
    height: 30px;
}

.sd-latest-eval__accent span:nth-child(3) {
    height: 18px;
}

.sd-latest-eval__accent span:nth-child(4) {
    height: 26px;
}

.sd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sd-title h1 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
}

.sd-title p {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.sd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.sd-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--sd-card-radius);
    box-shadow: none;
    background: #fff;
}

.sd-card .sd-card-h {
    padding: 14px 14px 0;
    font-weight: 800;
}

.sd-card .sd-card-b {
    padding: 14px;
}

.sd-card--plain {
    box-shadow: none;
    border-radius: 14px;
}

.sd-card-b--tight {
    padding: 12px;
}

.sd-progress-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.sd-progress-top .big {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.sd-progress-top .muted {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.sd-wrap .progress {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
}

.sd-wrap .progress-bar,
.sd-progress-fill {
    background: var(--sd-brand);
    width: var(--sd-progress-width, auto);
}

.sd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--sd-brand-soft);
    color: color-mix(in srgb, var(--sd-brand) 72%, black);
    border: 1px solid var(--sd-brand-outline);
    margin-top: 10px;
}

.sd-next {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.sd-next .left,
.sd-min-0,
.sd-note__content {
    min-width: 0;
}

.sd-next .when {
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.sd-next .meta {
    margin: 0;
    color: #6c757d;
    font-size: 0.92rem;
}

.sd-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    white-space: nowrap;
}

.sd-badge.due {
    border-color: rgba(220, 53, 69, 0.25);
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
}

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

@media (min-width: 768px) {
    .sd-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sd-action {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 92px;
    text-decoration: none;
    color: inherit;
}

.sd-action:hover {
    border-color: color-mix(in srgb, var(--sd-brand) 25%, white);
    box-shadow: 0 10px 18px color-mix(in srgb, var(--sd-brand) 10%, transparent);
}

.sd-action .t,
.sd-section-title,
.sd-note__title,
.sd-appointment-title,
.sd-cert-title {
    font-weight: 900;
}

.sd-action .d {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.sd-note {
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--sd-brand) 18%, white);
    background: color-mix(in srgb, var(--sd-brand) 6%, white);
    padding: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sd-note__title {
    font-weight: 800;
}

.sd-accordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sd-accordion .accordion-button {
    font-weight: 900;
}

.sd-btn-pill {
    border-radius: 14px;
    font-weight: 900;
}

.sd-btn-pill-sm,
.sd-btn-strong {
    border-radius: 12px;
    font-weight: 900;
}

.sd-cert-card {
    position: relative;
}

.sd-cert-card--withheld {
    border: 1px solid #dc3545;
    background: #fff5f5;
}

.sd-cert-card--issued {
    border: 1px solid #198754;
    background: #f4fff8;
}

.sd-cert-emoji {
    font-size: 24px;
}

.sd-withheld-note {
    color: #b02a37;
    font-weight: 700;
}

.sd-alert-rounded {
    border-radius: 14px;
}

.medal-drop {
    position: absolute;
    right: 18px;
    top: -60px;
    font-size: 38px;
    opacity: 0;
    animation: medalDrop 0.9s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes medalDrop {
    0% {
        transform: translateY(-80px) scale(.6) rotate(-20deg);
        opacity: 0;
    }

    60% {
        transform: translateY(10px) scale(1.1) rotate(5deg);
        opacity: 1;
    }

    80% {
        transform: translateY(-6px) rotate(-2deg);
    }

    100% {
        transform: translateY(0);
    }
}

#confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    top: -12px;
    width: 10px;
    height: 14px;
    opacity: 0.95;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(calc(100vh + 24px)) rotate(720deg);
        opacity: 1;
    }
}

#celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.sd-wrap .text-primary,
.sd-wrap .btn-outline-primary,
.sd-wrap .btn-outline-primary:hover,
.sd-wrap .bg-primary {
    color: var(--sd-brand);
}

.sd-wrap .btn-primary {
    background-color: var(--sd-brand);
    border-color: var(--sd-brand);
}

.sd-wrap .btn-outline-primary {
    border-color: color-mix(in srgb, var(--sd-brand) 30%, white);
}

.sd-wrap .btn-outline-primary:hover,
.sd-wrap .bg-primary {
    background-color: var(--sd-brand) !important;
    border-color: var(--sd-brand) !important;
    color: #fff !important;
}

.sd-wrap .alert-info {
    background: color-mix(in srgb, var(--sd-brand) 6%, white);
    border-color: color-mix(in srgb, var(--sd-brand) 16%, white);
    color: var(--body-font-color);
}

.sd-wrap .badge.bg-primary {
    background-color: var(--sd-brand) !important;
}

.sd-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.sd-stickybar .inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.sd-stickybar .btn {
    font-weight: 900;
    border-radius: 14px;
    padding: 12px 14px;
}

.sd-stickybar .sd-btn-strong {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.sd-stickybar .sd-btn-strong:hover {
    background: color-mix(in srgb, var(--primary-color) 88%, black);
    border-color: color-mix(in srgb, var(--primary-color) 88%, black);
    color: #fff;
}

.sd-stickybar .btn-outline-primary {
    background: var(--secondary-color);
    border-color: color-mix(in srgb, var(--primary-color) 20%, white);
    color: var(--primary-color);
}

.sd-stickybar .btn-outline-primary:hover {
    background: color-mix(in srgb, var(--secondary-color) 86%, var(--primary-color) 14%);
    border-color: color-mix(in srgb, var(--primary-color) 28%, white);
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .sd-wrap {
        padding-bottom: 0.5rem;
    }

    .sd-stickybar {
        position: sticky;
        left: auto;
        right: auto;
        bottom: calc(var(--sp-mobile-nav-h) - 1px);
        padding: 0.2rem 0 0.35rem;
        background: #ffffff;
        backdrop-filter: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: none;
        margin-top: 0.35rem;
    }

    .sd-stickybar .inner {
        gap: 0.7rem;
    }

    .sd-stickybar .btn {
        min-height: 58px;
        box-shadow: none;
    }

    .student-shell .sp-mobile-nav {
        padding-top: 0.1rem;
        background: #ffffff;
        backdrop-filter: none;
        border-top: 0;
    }
}

@media (min-width: 992px) {
    .sd-stickybar {
        display: none;
    }

    .sd-wrap {
        padding-bottom: 14px;
    }
}

@media (max-width: 767px) {
    .sd-hero {
        align-items: center;
        margin-top: 0;
    }

    .sd-top-band__inner {
        padding-top: 4px;
    }

    .sd-hero__avatar-img,
    .sd-hero__avatar-fallback {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }

    .sd-progress-hero,
    .sd-next-card {
        padding: 0.95rem 1rem;
    }

    .sd-progress-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.75rem;
    }

    .sd-progress-ring {
        width: 68px;
        height: 68px;
        align-self: start;
        justify-self: end;
    }

    .sd-progress-ring__inner {
        width: 50px;
        height: 50px;
        font-size: 0.92rem;
    }

    .sd-progress-hero__title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .sd-progress-hero__caption {
        margin-top: 0.55rem;
    }

    .sd-next-card__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-upcoming-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

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

/* Student utility pages */
.student-billing-page .card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
}

.student-billing-table {
    --sb-border: color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.student-billing-table > :not(caption) > * > * {
    border-color: var(--sb-border);
}

.student-billing-table .table-light,
.student-billing-table thead.table-light th {
    background: color-mix(in srgb, var(--primary-color) 7%, white);
}

.student-billing-col-order {
    width: 90px;
}

.student-billing-col-status,
.student-billing-col-total,
.student-billing-col-amount,
.student-billing-col-ledger-amount {
    width: 140px;
}

.student-billing-col-created,
.student-billing-col-date {
    width: 190px;
}

.student-billing-col-provider {
    width: 110px;
}

.student-billing-col-order-ref,
.student-billing-col-ledger-type {
    width: 120px;
}

.student-billing-col-ledger-date {
    width: 180px;
}

.evaluation-readonly-summary {
    min-width: 150px;
}

.evaluation-readonly-progress {
    height: 6px;
    width: 140px;
    margin-left: auto;
}

.evaluation-readonly-progress__bar {
    background: var(--primary-color);
    width: var(--evaluation-readonly-progress-width, auto);
}

.student-payment-error-page {
    max-width: 700px;
}

.student-payment-error-card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
}

.student-track-page__map {
    height: 400px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.student-tracking-page__map {
    height: 500px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.student-checkout-lessons-page {
    max-width: 700px;
}

.student-checkout-lessons-card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
}

.student-upload-file__custom-name.is-hidden {
    display: none;
}

.instructor-card__background {
    background: url("/static/images/background.jpg") no-repeat center center;
    background-size: cover;
}

/* Parent portal white-label shell */
.parent-shell {
    --pp-sidebar-w: 240px;
    --pp-sidebar-bg: color-mix(in srgb, var(--primary-color) 92%, black 8%);
    --pp-sidebar-text: var(--navbar-font-color);
    --pp-accent: var(--secondary-color);
    --pp-accent-strong: color-mix(in srgb, var(--secondary-color) 76%, #6b7280);
    --pp-page-bg:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 8%, white) 0%, transparent 30%),
        linear-gradient(180deg, color-mix(in srgb, var(--hero-background-color) 62%, white) 0%, var(--background-color) 100%);
}

.parent-shell body,
body.parent-shell {
    font-family: 'Inter', sans-serif;
    background: var(--pp-page-bg);
    color: var(--body-font-color);
}

.parent-shell .pp-sidebar {
    width: var(--pp-sidebar-w);
    min-height: 100vh;
    background: var(--pp-sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.12);
}

.parent-shell .pp-sidebar-brand {
    padding: 1.2rem 1rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pp-sidebar-text) 12%, transparent);
}

.parent-shell .pp-sidebar-brand__top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.parent-shell .pp-sidebar-brand__logo,
.parent-shell .pp-offcanvas__logo,
.parent-shell .pp-mobile-bar__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.35rem;
    flex-shrink: 0;
}

.parent-shell .pp-sidebar-brand__copy {
    min-width: 0;
}

.parent-shell .pp-sidebar-brand .badge-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    background: color-mix(in srgb, var(--pp-accent) 18%, white);
    color: color-mix(in srgb, var(--pp-sidebar-bg) 35%, black 65%);
    font-weight: 800;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.parent-shell .pp-sidebar-brand .portal-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pp-sidebar-text);
    margin-top: 0.3rem;
    line-height: 1.2;
}

.parent-shell .pp-sidebar-brand .student-name {
    font-size: 0.76rem;
    color: color-mix(in srgb, var(--pp-sidebar-text) 62%, transparent);
    margin-top: 0.75rem;
}

.parent-shell .pp-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.parent-shell .pp-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.1rem;
    color: color-mix(in srgb, var(--pp-sidebar-text) 78%, transparent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.parent-shell .pp-nav a:hover,
.parent-shell .pp-nav a.active {
    background: color-mix(in srgb, var(--pp-sidebar-text) 12%, transparent);
    color: var(--pp-sidebar-text);
    border-left-color: var(--pp-accent-strong);
}

.parent-shell .pp-nav a i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.parent-shell .pp-nav .pp-nav-link--accent {
    color: color-mix(in srgb, var(--pp-accent) 72%, white);
}

.parent-shell .pp-nav .pp-nav-link--accent:hover,
.parent-shell .pp-nav .pp-nav-link--accent.active {
    color: var(--pp-sidebar-text);
}

.parent-shell .pp-nav-divider {
    height: 1px;
    background: color-mix(in srgb, var(--pp-sidebar-text) 10%, transparent);
    margin: 0.5rem 1rem;
}

.parent-shell .pp-sidebar-footer {
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--pp-sidebar-text) 48%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--pp-sidebar-text) 10%, transparent);
}

.parent-shell .pp-main {
    margin-left: var(--pp-sidebar-w);
    min-height: 100vh;
    padding: 1.5rem;
}

.parent-shell .pp-mobile-bar {
    display: none;
}

.parent-shell .pp-mobile-bar__brand,
.parent-shell .pp-offcanvas__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.parent-shell .pp-mobile-bar__name {
    color: var(--pp-sidebar-text);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.15;
}

.parent-shell .pp-mobile-bar__toggle {
    border-color: color-mix(in srgb, var(--pp-sidebar-text) 32%, transparent);
    color: var(--pp-sidebar-text);
}

.parent-shell .pp-mobile-bar__toggle:hover {
    background: color-mix(in srgb, var(--pp-sidebar-text) 12%, transparent);
    color: var(--pp-sidebar-text);
}

.parent-shell .pp-offcanvas {
    background: var(--pp-sidebar-bg);
    max-width: 260px;
    color: var(--pp-sidebar-text);
}

.parent-shell .pp-offcanvas .offcanvas-title {
    color: var(--pp-sidebar-text);
}

.parent-shell .pp-alert {
    font-size: 0.88rem;
}

@media (max-width: 767px) {
    .parent-shell .pp-sidebar {
        display: none;
    }

    .parent-shell .pp-main {
        margin-left: 0;
        padding: 1rem;
    }

    .parent-shell .pp-mobile-bar {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 200;
        background: var(--pp-sidebar-bg);
        padding: 0.75rem 1rem;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid color-mix(in srgb, var(--pp-sidebar-text) 10%, transparent);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    }
}

/* Parent login / invite surfaces */
.parent-auth-page {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 9%, white) 0%, transparent 32%),
        linear-gradient(180deg, color-mix(in srgb, var(--hero-background-color) 62%, white) 0%, var(--background-color) 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.parent-auth-card {
    max-width: 440px;
    margin: 4.5rem auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
    padding: 2.5rem 2rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, #d9dee8);
}

.parent-auth-card--invite {
    max-width: 460px;
    margin-top: 3rem;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    background: color-mix(in srgb, var(--secondary-color) 18%, white);
    color: color-mix(in srgb, var(--navbar-bg-color) 35%, black 65%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.26rem 0.7rem;
    margin-bottom: 0.65rem;
}

.parent-auth-logo-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.parent-auth-logo {
    max-height: 64px;
    max-width: 210px;
    object-fit: contain;
}

.parent-auth-title {
    color: var(--header-font-color);
}

.parent-auth-copy {
    font-size: 0.88rem;
}

.parent-auth-label {
    font-size: 0.85rem;
}

.parent-auth-alert {
    font-size: 0.86rem;
}

.parent-auth-note {
    font-size: 0.8rem;
}

.parent-auth-note--left {
    text-align: left;
}

.school-name {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Parent portal content pages */
.parent-page {
    max-width: 900px;
}

.parent-payment-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem;
}

.parent-page__header {
    margin-bottom: 1.5rem;
}

.parent-page__kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: #6b7280;
}

.parent-page__title {
    margin: 0;
    font-weight: 800;
    color: var(--header-font-color);
}

.parent-page__meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.parent-page__backlink-wrap {
    margin-top: 1rem;
}

.parent-page__backlink {
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
}

.parent-page__backlink:hover,
.parent-inline-link:hover {
    color: var(--primary-color);
}

.parent-card {
    border-radius: 16px;
}

.parent-card--success {
    border-left: 4px solid #198754 !important;
}

.parent-card__heading {
    font-size: 0.88rem;
}

.parent-card__heading--success {
    color: #198754;
}

.parent-card__body-copy,
.parent-empty-state__text {
    font-size: 0.84rem;
}

.parent-card__kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.parent-stat-card__value {
    font-size: 1.7rem;
    font-weight: 800;
}

.parent-stat-card__value--primary {
    color: var(--header-font-color);
}

.parent-stat-card__value--success {
    color: #198754;
}

.parent-stat-card__value--secondary {
    color: var(--primary-color);
}

.parent-stat-card__value--accent {
    color: #fd7e14;
}

.parent-stat-card__value--muted {
    color: #6c757d;
}

.parent-stat-card__value--danger {
    color: #dc3545;
}

.parent-stat-card__label {
    font-size: 0.75rem;
}

.parent-progress-summary {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--header-font-color);
}

.parent-progress-bar {
    height: 10px;
    border-radius: 8px;
}

.parent-progress-fill {
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, color-mix(in srgb, var(--secondary-color) 45%, var(--primary-color)) 100%);
}

.parent-card__link {
    font-size: 0.75rem;
}

.parent-list-item__dot {
    font-size: 0.45rem;
}

.parent-list-item__title {
    font-size: 0.86rem;
}

.parent-list-item__meta,
.parent-package-row__meta,
.parent-package-row__note,
.parent-table__meta,
.parent-eval__meta,
.parent-cert__meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.parent-package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.parent-package-row__title,
.parent-eval__title,
.parent-cert__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--header-font-color);
}

.parent-package-row__note {
    font-size: 0.77rem;
    font-style: italic;
}

.parent-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.parent-action-button:hover {
    color: #fff;
    filter: brightness(0.94);
}

.parent-action-button--wide {
    width: 100%;
    padding: 11px;
}

.parent-action-button--accent {
    background: color-mix(in srgb, var(--secondary-color) 76%, white);
    color: color-mix(in srgb, var(--header-font-color) 60%, black);
}

.parent-action-button--accent:hover {
    color: color-mix(in srgb, var(--header-font-color) 60%, black);
}

.parent-table {
    font-size: 0.84rem;
}

.parent-badge {
    font-size: 0.72rem;
}

.parent-empty-state__icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.parent-inline-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--secondary-color) 78%, #6b7280);
    text-decoration: none;
}

.parent-eval__score {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.parent-eval__score-label {
    font-size: 0.72rem;
}

.parent-eval__note {
    font-size: 0.82rem;
}

.parent-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 1.5rem;
}

.parent-payment-card {
    padding: 1.25rem;
    border-radius: 12px;
}

.parent-payment-card--summary {
    height: fit-content;
}

.parent-payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    gap: 1rem;
}

.parent-payment-row__label {
    color: #6b7280;
}

.parent-payment-row__value {
    font-weight: 600;
    color: var(--header-font-color);
}

.parent-payment-row--total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--header-font-color);
}

.parent-payment-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0.75rem 0;
}

.parent-payment-option {
    margin-bottom: 1rem;
}

.parent-payment-option__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--header-font-color);
    margin-bottom: 0.5rem;
}

.parent-payment-help {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 767px) {
    .parent-package-row,
    .parent-payment-row,
    .parent-payment-grid {
        display: block;
    }

    .parent-payment-grid {
        grid-template-columns: 1fr;
    }

    .parent-action-button {
        margin-top: 0.75rem;
        width: 100%;
    }
    /* ── StudentScheduler calendar fixes ──────── */

/* #student-scheduler-root .fc-day-today,
#student-scheduler-root .fc-day-today .fc-daygrid-day-frame {
  background: transparent !important;
} */
.ss-legend {
  display: flex;
  gap: 16px;
  padding: 8px 4px;
  align-items: center;
}
.ss-legend__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8A9BB0;
}
.ss-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ss-legend__dot--today { background: #1A2332; }
.ss-legend__dot--available { background: #22C55E; }
.ss-legend__dot--selected {
  background: #F59E0B;
}
.ss-times-panel {
  margin-top: 10px;
  background: #FFFFFF;
  border: 0.5px solid #E8EAED;
  border-radius: 14px;
  padding: 14px 16px;
}
.ss-times-panel__header {
  font-size: 13px;
  font-weight: 600;
  color: #1A2332;
  margin-bottom: 10px;
}
.ss-times-panel__empty {
  font-size: 13px;
  color: #8A9BB0;
}
.ss-time-slot {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0.5px solid #E8EAED;
  background: #F8F9FA;
  color: #1A2332;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.ss-time-slot--selected {
  background: #1E2535;
  border: 1.5px solid var(--primary-color, #F59E0B);
  color: #FFFFFF;
}
/* ══════════════════════════════════════════
   STUDENT SCHEDULER — styles.css
   ══════════════════════════════════════════ */

/* ── Legend ── */
.ss-legend {
    display: flex;
    gap: 16px;
    padding: 8px 4px;
    align-items: center;
}

.ss-legend__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #8A9BB0;
}

.ss-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ss-legend__dot--today {
    background: #1A2332;
}

.ss-legend__dot--available {
    background: #22C55E;
}

.ss-legend__dot--selected {
    background: #F59E0B;
}

/* ── Times panel ── */
.ss-times-panel {
    margin-top: 10px;
    background: #FFFFFF;
    border: 0.5px solid #E8EAED;
    border-radius: 14px;
    padding: 14px 16px;
}

.ss-times-panel__header {
    font-size: 13px;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 10px;
}

.ss-times-panel__empty {
    font-size: 13px;
    color: #8A9BB0;
}

.ss-time-slot {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0.5px solid #E8EAED;
    background: #F8F9FA;
    color: #1A2332;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.ss-time-slot--selected {
    background: #1E2535;
    border: 1.5px solid var(--primary-color, #F59E0B);
    color: #FFFFFF;
}

.ss-public-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1.25rem;
    max-width: none;
}

.ss-public-toolbar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A2332;
}

.ss-public-toolbar__text {
    margin: 0.35rem 0 0;
    color: #5f6f84;
    line-height: 1.45;
}

.ss-public-zip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(26, 35, 50, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 251, 0.96) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ss-public-zip-row__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ss-public-zip-row__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A9BB0;
}

.ss-public-zip-row__value {
    color: #1A2332;
    font-weight: 600;
    font-size: 1rem;
}

.ss-public-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: end;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(26, 35, 50, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ss-page--public .ss-public-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 220px;
    flex: 1 1 240px;
}

.ss-page--public .ss-public-field__label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1A2332;
}

.public-entry-scheduler .ss-page--public .ss-public-field__control {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 26%, #cbd5e1) !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    color: var(--header-font-color, #1A2332) !important;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    font: inherit;
}

.ss-public-controls__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.public-entry-scheduler .ss-page--public .ss-public-button,
.public-entry-scheduler .ss-page--public button.ss-public-button,
.public-entry-scheduler .ss-page--public a.ss-public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, #cbd5e1) !important;
    background: #FFFFFF !important;
    color: var(--navbar-bg-color, #1E2535) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    font: inherit;
}

.public-entry-scheduler .ss-page--public .ss-public-button--primary,
.public-entry-scheduler .ss-page--public button.ss-public-button--primary,
.public-entry-scheduler .ss-page--public a.ss-public-button--primary {
    background: var(--primary-color, #0d6efd) !important;
    border-color: var(--primary-color, #0d6efd) !important;
    color: #FFFFFF !important;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary-color) 32%, transparent) !important;
}

.public-entry-scheduler .ss-page--public .ss-public-button--secondary,
.public-entry-scheduler .ss-page--public button.ss-public-button--secondary,
.public-entry-scheduler .ss-page--public a.ss-public-button--secondary {
    background: #FFFFFF !important;
    border-color: color-mix(in srgb, var(--navbar-bg-color) 26%, #cbd5e1) !important;
    color: var(--navbar-bg-color, #1E2535) !important;
}

.public-entry-scheduler .ss-page--public .ss-public-button--link {
    text-decoration: none !important;
}

.ss-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.ss-public-calendar,
.ss-public-results__section {
    background: #FFFFFF;
    border: 1px solid rgba(26, 35, 50, 0.08);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.ss-public-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.ss-public-results__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1A2332;
}

.ss-public-results__empty {
    color: #6B7280;
    line-height: 1.45;
}

.ss-public-time-list,
.ss-public-instructor-list {
    display: grid;
    gap: 0.75rem;
}

.ss-public-time-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-entry-scheduler .ss-page--public .ss-public-time-list .ss-time-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(26, 35, 50, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
    color: var(--navbar-bg-color, #1E2535);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.public-entry-scheduler .ss-page--public .ss-public-time-list .ss-time-slot:hover,
.public-entry-scheduler .ss-page--public .ss-public-time-list .ss-time-slot:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color, #F59E0B);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.public-entry-scheduler .ss-page--public .ss-public-time-list .ss-time-slot--selected {
    border-color: var(--primary-color, #F59E0B);
    background: linear-gradient(180deg, var(--navbar-bg-color, #1E2535) 0%, #111827 100%);
    color: #FFFFFF;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.ss-public-instructor-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ss-public-instructor-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid rgba(26, 35, 50, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ss-public-instructor-card__avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #F3F4F6;
    border: 2px solid rgba(245, 158, 11, 0.18);
}

.ss-public-instructor-card__avatar-img,
.ss-public-instructor-card__avatar-fallback {
    width: 100%;
    height: 100%;
}

.ss-public-instructor-card__avatar-img {
    object-fit: cover;
}

.ss-public-instructor-card__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1A2332;
    background: rgba(245, 158, 11, 0.12);
}

.ss-public-instructor-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
}

.ss-public-instructor-card__name {
    font-weight: 800;
    color: #1A2332;
}

.ss-public-instructor-card__bio {
    color: #4B5563;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.public-entry-scheduler .ss-page--public .ss-public-button:hover,
.public-entry-scheduler .ss-page--public .ss-public-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color, #F59E0B) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14) !important;
}

/* ══════════════════════════════════════════
   FULLCALENDAR OVERRIDES
   ══════════════════════════════════════════ */

/* ── Outer .fc — transparent, no card (toolbar floats above grid) ── */
#student-scheduler-root .fc {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* ── Remove ALL grid lines ── */
#student-scheduler-root .fc-theme-standard td,
#student-scheduler-root .fc-theme-standard th,
#student-scheduler-root .fc-theme-standard .fc-scrollgrid {
    border: none !important;
}

/* ── Fix global th override ── */
#student-scheduler-root th {
    background-color: transparent !important;
}

/* ── Toolbar — sits above the white card, no background ── */
#student-scheduler-root .fc-toolbar,
#student-scheduler-root .fc-toolbar.fc-header-toolbar {
    background: transparent !important;
    padding: 0 4px 10px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#student-scheduler-root .fc-toolbar-chunk {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#student-scheduler-root .fc-toolbar-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1A2332 !important;
}

#student-scheduler-root .fc-button {
    background: #FFFFFF !important;
    border: 0.5px solid #E8EAED !important;
    color: #8A9BB0 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    box-shadow: none !important;
}

#student-scheduler-root .fc-button:hover {
    background: #F8F9FA !important;
    color: #1A2332 !important;
}

/* ── Grid card — white rounded box wraps only the calendar grid ── */
#student-scheduler-root .fc-view-harness {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    border: 0.5px solid #E8EAED !important;
    overflow: visible !important;
    padding: 8px 0 8px !important;
}

#student-scheduler-root .fc-daygrid-body,
#student-scheduler-root .fc-scrollgrid-sync-table,
#student-scheduler-root table.fc-scrollgrid {
    background: #FFFFFF !important;
}

/* ── Day headers — first letter only, centered, no background ── */
#student-scheduler-root .fc-col-header-cell {
    background: transparent !important;
    padding: 8px 0 4px !important;
}

#student-scheduler-root .fc-col-header-cell-cushion {
    font-size: 0 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    display: block !important;
    text-align: center !important;
}

#student-scheduler-root .fc-col-header-cell-cushion::first-letter {
    font-size: 11px !important;
    color: #1A2332 !important;
    font-weight: 600 !important;
}

/* ── Day cells — centered, fixed height, no today background ── */
#student-scheduler-root .fc-day-today,
#student-scheduler-root .fc-day-today .fc-daygrid-day-frame {
    background: transparent !important;
}

#student-scheduler-root .fc-daygrid-day-frame {
    min-height: 44px !important;
    height: 44px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#student-scheduler-root .fc-daygrid-day-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100% !important;
}

#student-scheduler-root .fc-daygrid-day-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    float: none !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: #1A2332 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    pointer-events: none !important;
    position: relative !important;
    z-index: 1 !important;
}

#student-scheduler-root .fc-day-other .fc-daygrid-day-number {
    color: #C5CAD4 !important;
}

/* ── Today circle — dark ── */
#student-scheduler-root .fc-day-today .fc-daygrid-day-number {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

#student-scheduler-root .fc-day-today .fc-daygrid-day-number::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 28px !important;
    height: 28px !important;
    background: #1A2332 !important;
    border-radius: 50% !important;
    z-index: -1 !important;
}

/* ── Selected date — gold circle ── */
#student-scheduler-root .fc-day-selected .fc-daygrid-day-number {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

#student-scheduler-root .fc-day-selected .fc-daygrid-day-number::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 28px !important;
    height: 28px !important;
    background: var(--primary-color, #F59E0B) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
}

.public-entry-scheduler #student-scheduler-root .fc-toolbar.fc-header-toolbar {
    padding: 0 0 0.9rem !important;
}

.public-entry-scheduler #student-scheduler-root .fc-toolbar-title {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    color: #1A2332 !important;
}

.public-entry-scheduler #student-scheduler-root .fc-scrollgrid {
    border: 1px solid rgba(26, 35, 50, 0.08) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
}

.public-entry-scheduler #student-scheduler-root .fc-view-harness {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-body,
.public-entry-scheduler #student-scheduler-root .fc-scrollgrid-sync-table,
.public-entry-scheduler #student-scheduler-root table.fc-scrollgrid {
    width: 100% !important;
}

.public-entry-scheduler #student-scheduler-root .fc-col-header-cell {
    background: rgba(248, 250, 252, 0.98) !important;
    border-bottom: 1px solid rgba(26, 35, 50, 0.08) !important;
    padding: 0.85rem 0 0.65rem !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-day {
    border-right: 1px solid rgba(26, 35, 50, 0.08) !important;
    border-bottom: 1px solid rgba(26, 35, 50, 0.08) !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-day:nth-child(7n) {
    border-right: none !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-day-frame {
    min-height: 96px !important;
    height: auto !important;
    padding: 0.75rem 0.15rem 0.9rem !important;
    justify-content: flex-start !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-day-top {
    margin-bottom: 0.15rem !important;
}

.public-entry-scheduler #student-scheduler-root .fc-daygrid-day-events,
.public-entry-scheduler #student-scheduler-root .fc-daygrid-day-bottom {
    min-height: 0 !important;
}

.public-entry-scheduler #student-scheduler-root .fc-button {
    min-height: 42px !important;
    padding: 0.65rem 0.95rem !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    background: var(--navbar-bg-color, #1E2535) !important;
    border-color: var(--navbar-bg-color, #1E2535) !important;
    color: var(--navbar-font-color, #FFFFFF) !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .ss-public-zip-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ss-public-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ss-public-controls {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .ss-public-field,
    .ss-public-button {
        width: 100%;
    }

    .ss-public-controls__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ss-public-results {
        position: static;
    }

    .ss-public-calendar,
    .ss-public-results__section {
        padding: 0.85rem;
    }

    .ss-public-instructor-card {
        flex-direction: column;
    }

    .public-entry-scheduler #student-scheduler-root .fc-toolbar.fc-header-toolbar {
        gap: 0.75rem !important;
    }

    .public-entry-scheduler #student-scheduler-root .fc-toolbar-title {
        font-size: 1.35rem !important;
    }

    .public-entry-scheduler #student-scheduler-root .fc-daygrid-day-frame {
        min-height: 72px !important;
        padding: 0.5rem 0.1rem 0.7rem !important;
    }
}
}
