/* ============================================================
   app.css — NOIC Web global styles
   MudBlazor handles component theming via CSS variables.
   This file covers only structural and page-level concerns
   that MudBlazor does not own.
   ============================================================ */

/* ── Base reset ─────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
}

/* ── FullCalendar overrides ─────────────────────────────── */

/* Ensure the calendar fills its container and respects MudBlazor dark mode */
#noic-session-calendar .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

#noic-session-calendar .fc-event {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

#noic-session-calendar .fc-daygrid-day-number {
    font-size: 0.85rem;
}

/* ── Plan My Night layout ───────────────────────────────── */

/* Prevent the 3-panel layout from overflowing on small screens */
@media (max-width: 960px) {
    .plan-my-night {
        flex-direction: column !important;
    }

    .plan-filters,
    .plan-cart {
        width: 100% !important;
        min-width: unset !important;
        position: static !important;
    }
}

/* Visibility stat rows in Plan My Night target cards */
.plan-vis-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Allotment meter ────────────────────────────────────── */

.allotment-meter {
    width: 100%;
}

.allotment-meter__label {
    font-size: 0.75rem;
}

/* ── Registration page ──────────────────────────────────── */

.register-page {
    background: transparent;
}

/* ── Login page ─────────────────────────────────────────── */

.login-page {
    background: transparent;
}

/* ── Session calendar dialog ────────────────────────────── */

.session-dialog-body {
    min-width: 280px;
}

/* ── Utility ────────────────────────────────────────────── */

/* Monospace blocks (TOTP shared key, recovery codes) */
.mono {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    letter-spacing: 0.1em;
}
