:root {
    --color-navy: #1E3D5A;
    --color-teal: #00B4C5;
    --color-bg: #EBEBEB;
}

html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    height: 100%;
    /* prevent iOS bounce scroll */
    overscroll-behavior: none;
}

/* ── Bottom navigation ─────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: var(--color-teal);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 2px;
    padding: 6px 0;
    transition: color 0.15s;
}

.nav-item:hover {
    color: white;
    text-decoration: none;
}

.nav-active {
    color: white;
    background: rgba(0,0,0,0.12);
    border-top: 2px solid white;
}

/* Main content area — leaves room for bottom nav */
.page-content {
    padding-bottom: 80px;
}

/* Splash screen while Blazor loads */
.splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--color-navy);
}

.loading-progress {
    display: block;
    width: 6rem;
    height: 6rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--color-teal);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Laden...");
}

#blazor-error-ui {
    background: #b32121;
    color: white;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

/* ── Enrollment date groups ────────────────────────────────────── */
.enroll-date-header {
    padding: 0.5rem 0 0.25rem;
    border-bottom: 2px solid var(--color-teal);
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}
.enroll-date-header:first-child { margin-top: 0; }
.enroll-date-past { border-bottom-color: #ccc; }

/* ── Admin class rows ──────────────────────────────────────────── */
.class-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.class-row:last-child { border-bottom: none; }

.class-when {
    display: flex;
    flex-direction: column;
    min-width: 64px;
    flex-shrink: 0;
}

.class-day {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: capitalize;
}

.class-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-teal);
}

.class-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.class-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}

.class-cap {
    font-size: 0.75rem;
    color: #5A7A94;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
