h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================================================
   Dance School Shell & Account Styles (Custom Palette: #007098, Black, White)
   ========================================================================== */

/* Minimalist, Elegant Page Header Design */
.page-header {
    text-align: center;
    margin-top: 5rem; /* Gives deep breathing room below your fixed 70px navbar */
    margin-bottom: 2rem; /* Balanced space above your form card containers */
    padding: 0 1rem;
}

    .page-header h1 {
        font-family: 'Playfair Display', serif !important;
        font-size: 2.75rem; /* Large, premium display size */
        font-weight: 700;
        color: #000000;
        letter-spacing: -0.01em;
        margin: 0 auto 0.75rem auto;
        display: inline-block;
        position: relative;
    }

        /* Elegant brand underline flourish that sits beneath the title text */
        .page-header h1::after {
            content: '';
            position: absolute;
            bottom: -8px; /* Hangs just below the text baseline */
            left: 25%; /* Centers a shortened accent line */
            width: 50%;
            height: 2px; /* Thin, delicate stroke width */
            background-color: #007098; /* Your signature brand accent blue */
            border-radius: 2px;
        }

    .page-header p {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1rem;
        color: #64748b; /* Subtle slate gray description text */
        margin: 0.5rem 0 0 0;
    }


/* Set up universal font and base smooth background rules */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfcfc;
    color: #111111; /* Clean Off-Black */
}

/* Fluid structure for layout grids */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.col-md-4, .col-md-6 {
    flex: 1;
    min-width: 320px;
}

/* Elegant serif headings for school brand aesthetics */
h1, h2, h3, h4, h5, h6, .school-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}

/* Minimalist registration/login card modules */
.card, .account-form-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Sleek inputs matching school accent lines */
.form-control {
    display: block;
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111111;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    min-width: 0;
}

    /* Active focus halos utilizing the #007098 branding */
    .form-control:focus {
        outline: none;
        border-color: #007098;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(0, 112, 152, 0.12);
    }

/* Animated Floating Inputs Layout */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

    .form-floating .form-control {
        padding-top: 1.75rem;
        padding-bottom: 0.55rem;
    }

    .form-floating label {
        position: absolute;
        top: 0;
        left: 0;
        padding: 1.15rem;
        pointer-events: none;
        transform-origin: 0 0;
        transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
        color: #777777;
    }

    /* Animate the text upward gracefully when interacting */
    .form-floating .form-control:focus ~ label,
    .form-floating .form-control:not(:placeholder-shown) ~ label {
        transform: scale(.8) translateY(-0.85rem) translateX(0.15rem);
        color: #007098;
        font-weight: 600;
    }

    .form-floating .form-control::placeholder {
        color: transparent;
    }

.form-card-container {
    max-width: 650px; /* Restricts form width from stretching too wide */
    margin: 4rem auto; /* Centers the card horizontally and adds top/bottom space */
    background-color: #ffffff; /* Clean white surface background */
    border: 1px solid #eef2f6; /* Subtly defines the edge of the card */
    border-radius: 16px; /* Smooth, elegant modern rounded corners */
    padding: 3rem 2.5rem; /* Generous inner breathing room for fields */
    /* Elegant, premium layer drop shadow structure */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Premium buttons featuring the #007098 brand signature */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffffff;
    background-color: #007098;
    border: 1px solid #007098;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        background-color: #005a7b; /* Darkened deep blue hover slate */
        border-color: #005a7b;
        box-shadow: 0 4px 12px rgba(0, 112, 152, 0.2);
    }

    .btn-primary:active {
        transform: scale(0.99);
    }

/* Custom Checkbox elements */
.checkbox, .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.25rem 0;
    color: #444444;
    font-size: 0.95rem;
    cursor: pointer;
}

    .checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #007098;
        border-radius: 4px;
        cursor: pointer;
    }

/* Form Error Validation Helpers */
.text-danger {
    color: #c92a2a;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.validation-summary-errors ul {
    background-color: #fff5f5;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 1.25rem 2.25rem;
    color: #c92a2a;
    font-size: 0.95rem;
}

/* Custom Multi-Column Form Row Utilities */
.form-row-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Splits row into 2 equal columns */
    gap: 1.25rem; /* Keeps spacing identical to the form vertical flow */
    margin-bottom: 0.25rem;
}

.form-row-3col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Splits row into 3 equal columns */
    gap: 1.25rem; /* Keeps spacing identical to the form vertical flow */
    margin-bottom: 0.25rem;
    width: 100%;
}

/* Custom Registration Lockbox Interface */
.gate-error-banner {
    background-color: #fff5f5;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #c92a2a;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Custom decorative horizontal divider rule using your #007098 accent */
.brand-divider {
    border: 0;
    height: 1px;
    background-color: #007098;
    opacity: 0.2;
    margin-bottom: 1.5rem;
}


/* Fallback for smaller mobile screens so fields don't get squished */
@media (max-width: 576px) {
    .form-row-2col-grid {
        grid-template-columns: 1fr; /* Stack fields vertically on phone widths */
    }

    .form-row-3col-grid {
        grid-template-columns: 1fr; /* Stack fields vertically on phone widths */
    }
}

/* ==========================================================================
   Dance School Single Page Layout & Navigation (Custom Theme)
   ========================================================================== */

/* Enable native smooth scroll transitions */
html {
    scroll-behavior: smooth;
}

/* Base Body Framework Overrides */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Master Header Navbar Container */
.school-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand-container {
    display: inline-flex;
    align-items: center; /* Centers logo vertically with text */
    gap: 0.75rem; /* Perfect spacing buffer between logo and words */
    text-decoration: none;
    cursor: pointer;
}

/* Constrain Logo Proportions */
.navbar-logo {
    height: 40px; /* Restricts logo height inside the 70px nav block */
    width: auto; /* Scale width proportionally to prevent distortion */
    object-fit: contain;
}

/* Brand Text Style Rules */
.navbar-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-weight: 700;
    color: #000000;
}

/* Desktop Links Alignment */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .navbar-links a {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 500;
        color: #444444;
        text-decoration: none;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        transition: color 0.2s ease;
    }

        .navbar-links a:hover {
            color: #007098;
        }

    .navbar-links li {
        display: inline-flex;
        align-items: center;
        height: 100%;
    }

/* Hamburger Toggle Button */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

    .navbar-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #000000;
        transition: all 0.3s ease;
    }

/* Navigation Dropdown List Item Parent */
.navbar-dropdown {
    position: relative;
}

/* Tiny micro triangle caret indicator */
.dropdown-caret {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    vertical-align: middle;
    color: #777777;
}

/* Absolute Positioned Hidden Sub-Menu Sheet (Desktop Layout) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── HOVER ACCELERATION TOGGLE ENGINE ─── */
.navbar-dropdown:hover .dropdown-menu,
.navbar-dropdown:focus-within .dropdown-menu,
.navbar-dropdown.open-dropdown .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Individual Nested Links Layout Rules */
.dropdown-menu li {
    width: 100%;
    display: block !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    color: #333333 !important;
    text-align: left;
    transition: background-color 0.15s ease;
}

    .dropdown-menu a:hover {
        background-color: #f4f7f9;
        color: #007098 !important; /* Changes text color to brand blue on hover */
    }

/* Custom separator line for Admin splits */
.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: rgba(0, 112, 152, 0.15);
}

/* ==========================================================================
   Mobile Responsive Sub-Menu Overrides (Collapses Inline inside Mobile Grid)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-dropdown {
        width: 100%;
        display: block !important;
        text-align: center;
    }

    /* Convert desktop float sheet into a direct vertically expanding list container */
    .dropdown-menu {
        position: relative !important;
        display: block !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #f8faf !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: max-height 0.3s ease-in-out;
    }

    /* On mobile devices, tap interaction opens the panel inline safely */
    .navbar-dropdown.open-dropedown .dropdown-menu {
        max-height: 350px; /* Expands menu area bounds safely */
        padding: 0.5rem 0 !important;
    }

    .navbar-dropdown:hover .dropdown-muno {
        max-height: 0;
    }

    .dropdown-menu li {
        width: 100%;
        display: block !important
    }

    .dropdown-menu a {
        text-align: center !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid #eeeeee;
        width: 100%;
    }
}


.navbar-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem !important; /* Slightly tighter padding to fit the 70px nav height */
    font-weight: 600 !important;
    color: #007098 !important; /* Your core brand blue text */
    background-color: transparent;
    border: 2px solid #007098; /* Outlined brand border design */
    border-radius: 6px;
    transition: all 0.2s ease-in-out !important;
    margin-left: 0.5rem; /* Gutter separation from standard text scroll links */
}

    /* Hover inversion effect utilizing your brand palette */
    .navbar-login-btn:hover {
        color: #ffffff !important; /* Inverts to crisp white text */
        background-color: #007098; /* Fills background completely with brand blue */
        box-shadow: 0 4px 10px rgba(0, 112, 152, 0.15);
        text-decoration: none;
    }

/* Mobile Responsive Tweaks inside your existing media query */
@media (max-width: 768px) {
    .navbar-login-btn {
        margin: 1rem 2rem !important; /* Center and widen button inside mobile sheet overlay */
        display: flex !important;
        background-color: #f4f7f9; /* Light background tint for clear touch target callout */
    }
}

/* Single Page Section Dimensions */
.dance-section {
    min-height: 100vh;
    padding: 100px 2rem 4rem 2rem; /* Top padding avoids navigation header overlap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Alternate sections subtle shades to break visual layout */
.bg-light {
    background-color: #fcfcfc;
}

.bg-contrast {
    background-color: #f4f7f9;
}

.section-content {
    max-width: 900px;
    width: 100%;
}

    .section-content p {
        font-size: 1.1rem;
        line-height: 1.7;
        color: #333333;
        margin-bottom: 2rem;
    }

/* Floating Scroll-to-Top Action Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007098;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 112, 152, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .scroll-top-btn.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top-btn:hover {
        background-color: #005a7b;
        transform: translateY(-3px);
    }

.image-bg-card {
    position: relative;
    height: 175px; /* Fixed elegant portrait aspect height */
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes card text cleanly to the bottom */
    text-align: left;
    padding: 2rem;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    /* ─── IMAGE CONTROLLER ENGINE ─── */
    background-image: var(--card-bg); /* Pulls unique link variables from Blazor HTML */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .image-bg-card:hover {
        transform: translateY(-6px);
    }

    /* Dark rich overlay gradient to ensure text remains highly readable over bright images */
    .image-bg-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100%);
        z-index: 1;
    }

    /* Ensure typography layers sit safely above the dark gradient overlay */
    .image-bg-card h4, .image-bg-card p {
        position: relative;
        z-index: 2;
    }

    .image-bg-card h4 {
        color: #ffffff !important; /* Force stark white over the dark background gradient */
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .image-bg-card p {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 0.95rem;
        margin-bottom: 0 !important;
    }

/* Master container for the stacked content segments */
.stacked-media-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem; /* Breathing room between content rows */
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    width: 100%;
}

/* Individual Content Rows: Image Left, Text Right */
.media-row-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 2 Column Split */
    gap: 4rem;
    align-items: center;
    text-align: left; /* Clean flush left readability */
    width: 100%;
    padding-bottom: 3.5rem;
}

/* Constrain images within rows */
.media-row-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

/* Formatting for the text blocks on the right */
.media-row-text h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.media-row-text p {
    margin-bottom: 0 !important;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #444444;
}

/* ─── DANCE ACCENT ROW DIVIDERS ─── */
.media-row-block:not(:last-child) {
    border-bottom: 1px solid rgba(0, 112, 152, 0.2); /* Soft lines using your #007098 brand accent */
}

/* Custom Studio GIF Loader Overlay Container */
.gif-spinner-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Constrains your GIF file to a clean, professional aspect scale */
.studio-loading-gif {
    height: 100px; /* Clean portrait aspect framework height */
    width: auto; /* Scales width proportionally to prevent distorting your asset */
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.spinner-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* Responsive adjustment: stack columns vertically on tablet/mobile screens */
@media (max-width: 768px) {
    .stacked-media-container {
        gap: 2.5rem;
    }

    .media-row-block {
        grid-template-columns: 1fr; /* Full-width stacking on mobile */
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 2.5rem;
    }

    .media-row-image {
        max-height: 250px;
    }
}


/* ==========================================================================
   Mobile Responsive Navigation Media Query Quirks
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    /* Transform navigation lists into an overlay menu sheet */
    .navbar-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid #e5e5e5;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.3s ease-in-out;
    }

        .navbar-links.open {
            max-height: 75vh; /* Expands sheet to fit menu listings */
        }

        .navbar-links li {
            width: 100%;
            text-align: center;
        }

        .navbar-links a {
            display: block;
            padding: 1.25rem 0;
            border-bottom: 1px solid #f5f5f5;
            width: 100%;
        }
        .navbar-links a.navbar-login-btn {
            border-bottom: 2px solid #007098;
        }
}

/* Targeted Mobile Sub-Menu Expansion Override */
@media (max-width: 768px) {
    .navbar-links.open {
        max-height: 95vh !important; /* Force parent to expand */
        overflow-y: auto !important; /* Ensure scroll matches */
    }

    .navbar-dropdown.open-dropdown .dropdown-menu {
        display: block !important; /* Force layout block presence */
        position: relative !important; /* Drop right below parent text */
        max-height: 350px !important; /* Force downward slide container visibility */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important; /* Strip desktop flyout offsets */
    }
}


/* ==========================================================================
   Home Page Hero Disclaimer Accent (Vanilla CSS)
   ========================================================================== */
.studio-update-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(0, 112, 152, 0.07); /* Light soft tint of your #007098 blue */
    border: 1px solid rgba(0, 112, 152, 0.2); /* Fine brand accent border stroke */
    border-radius: 30px; /* Modern, smooth pill-shaped container */
    padding: 0.65rem 1.5rem;
    margin-bottom: 2rem; /* Clear separation above your main h1 heading */
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
}

.banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.banner-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: #004d6b; /* Darkened version of your brand blue for rich contrast text readability */
    line-height: 1.4;
    text-align: left;
}

/* Mobile viewport accommodation wrapper */
@media (max-width: 768px) {
    .studio-update-banner {
        flex-direction: column; /* Stack icon and text vertically on mobile viewports */
        gap: 0.4rem;
        padding: 1rem;
        border-radius: 12px; /* Square off edges slightly for short smartphone layouts */
    }

    .banner-text {
        text-align: center; /* Center align descriptive lines on mobile touch screens */
    }
}

/* ==========================================================================
   MY PROFILE DASHBOARD CSS
   ========================================================================== */
.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 950px;
    margin: 2rem auto;
    width: 100%;
}

.profile-action-card {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.profile-card-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007098;
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.profile-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-install-banner {
    background-color: #eaf6ff;
    border: 1px solid rgba(0, 112, 152, 0.2);
    color: #004d6b;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .profile-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Administrative Dashboard Interface Matrix Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1050px;
    margin: 2rem auto;
    width: 100%;
}

.admin-metric-card {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 2.25rem;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.admin-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
}

    .admin-metric-row:not(:last-child) {
        border-bottom: 1px solid #f1f5f9;
    }

@media (max-width: 768px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   7. ADMINISTRATIVE DASHBOARD MOBILE OPTIMIZATIONS OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Stack the master dashboard overview pane blocks into a vertical column flow */
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 0 0.5rem !important;
    }

        /* 2. Remove rigid layout grids inside individual metric management panes */
        .admin-dashboard-grid .admin-metric-card {
            padding: 1.5rem !important; /* Give extra breathing space inside narrow viewports */
        }

    /* 3. Re-align metric overview row text data elements beautifully */
    .admin-metric-row {
        flex-direction: row !important; /* Keep labels and cash values lined up left-to-right */
        font-size: 0.9rem !important;
    }

        .admin-metric-row strong {
            font-size: 1.05rem !important;
        }

    /* 4. FORCE RE-STACK ON ALL HORIZONTAL 3-COLUMN ADMINISTRATIVE GRIDS */
    .admin-dashboard-grid .form-row-3col-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        grid-template-columns: none !important; /* Wipe out old fixed constraints */
        width: 100% !important;
    }

    /* 5. Force input controls and button blocks to occupy uniform widths */
    .admin-dashboard-grid .form-floating,
    .admin-dashboard-grid .form-control {
        width: 100% !important;
        max-width: none !important;
    }

    /* 6. Expand button baselines to prevent text squishing or truncation crashes */
    .admin-dashboard-grid button.btn-primary,
    .admin-dashboard-grid .navbar-login-btn {
        width: 100% !important;
        max-width: none !important;
        height: 52px !important; /* Clean height uniform matching */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 7. Provide explicit spacing separation adjustments above structural buttons */
    .admin-dashboard-grid button.btn-primary {
        margin-top: 0.5rem !important;
    }
}


/* Administrative Finance Details CSS definitions */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.studio-audit-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

    .studio-audit-table th {
        background-color: #f8fafc;
        color: #475569;
        font-weight: 700;
        padding: 1rem 1.25rem;
        border-bottom: 2px solid #e2e8f0;
    }

    .studio-audit-table td {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #f1f5f9;
        color: #111111;
        vertical-align: middle;
    }

    .studio-audit-table tr:hover {
        background-color: #fcfdfd;
    }

.badge-finance-method {
    background-color: #e2e8f0;
    color: #334155;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Custom Dancer Class List Hover Expansion Overlays */
.dancer-classes-hover-expand {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #444444;
    cursor: help; /* Displays a friendly question-mark pointer to hint at the hover action */
    transition: all 0.2s ease-in-out;
}

    /* ─── DYNAMIC OVERLAY TRIGGER ─── */
    .dancer-classes-hover-expand:hover {
        white-space: normal !important; /* Unclips the text, allowing lines to wrap naturally */
        background-color: #ffffff;
        border: 1px solid #007098; /* High-contrast brand blue border outline */
        border-radius: 6px;
        padding: 0.75rem 1rem;
        position: absolute; /* Pops up *above* the table without altering column widths */
        top: -4px;
        left: -8px;
        width: 340px; /* Gives the wrapped list ample room to expand */
        z-index: 100; /* Forces it to sit strictly on top of other elements */
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    }

/* Force the Finance and Class overview cards to stack vertically on mobile viewports */
@media (max-width: 768px) {
    .admin-dashboard-grid {
        display: flex !important;
        flex-direction: column !important; /* Forces top-to-bottom card stacking */
        width: 100% !important;
        box-sizing: border-box !important;
    }

        .admin-dashboard-grid .admin-metric-card {
            width: 100% !important; /* Allows cards to fill the mobile width safely */
            box-sizing: border-box !important;
            margin-bottom: 0.5rem !important; /* Clean vertical separation spacing */
        }

    /* Stack your class creation form items top-to-bottom on smartphone viewports */
    .admin-metric-card .form-row-3col-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .admin-metric-card style div div div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .admin-metric-card div div input,
    .admin-metric-card div div button {
        width: 100% !important;
        max-width: none !important;
    }
}
