@charset "UTF-8";
:root {
    --ec-primary: #0f4c81;
    --ec-primary-dark: #0b3558;
    --ec-accent: #d97706;
    --ec-surface: rgba(255, 255, 255, 0.94);
    --ec-surface-strong: #ffffff;
    --ec-border: rgba(15, 76, 129, 0.12);
    --ec-text: #163047;
    --ec-muted: #5b7083;
    --ec-shadow: 0 18px 40px rgba(9, 30, 52, 0.08);
    --ec-radius: 1rem;
}

body.app-shell {
    min-height: 100vh;
    color: var(--ec-text);
    background:
        radial-gradient(circle at top left, rgba(15, 76, 129, 0.12), transparent 35%),
        linear-gradient(180deg, #eef4f8 0%, #f7fafc 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

.site-navbar {
    background: linear-gradient(135deg, rgba(11, 53, 88, 0.98), rgba(15, 76, 129, 0.95));
    box-shadow: 0 12px 24px rgba(9, 30, 52, 0.18);
}

.site-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-navbar .nav-link,
.site-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.86) !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #ffffff !important;
}

.site-navbar .dropdown-toggle::after {
    margin-left: 0.45rem;
}

.admin-menu-dropdown {
    min-width: min(32rem, calc(100vw - 2rem));
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(9, 30, 52, 0.18);
}

.admin-menu-dropdown .dropdown-header {
    padding: 0 1rem 0.35rem;
    color: var(--ec-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-menu-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: var(--ec-text);
}

.admin-menu-dropdown .dropdown-item:hover,
.admin-menu-dropdown .dropdown-item:focus {
    color: var(--ec-primary-dark);
    background-color: rgba(15, 76, 129, 0.08);
}

@media (max-width: 991.98px) {
    .admin-menu-dropdown {
        min-width: 100%;
    }
}

.page-shell {
    position: relative;
    z-index: 1;
}

.page-shell > * + * {
    margin-top: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ec-primary-dark);
    font-weight: 700;
}

p,
li,
dd {
    color: var(--ec-text);
}

a {
    color: var(--ec-primary);
    text-decoration-color: rgba(15, 76, 129, 0.35);
    text-underline-offset: 0.15em;
}

a:hover,
a:focus {
    color: var(--ec-primary-dark);
    text-decoration-color: rgba(11, 53, 88, 0.5);
}

.text-muted {
    color: var(--ec-muted) !important;
}

.card {
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    background: var(--ec-surface);
    box-shadow: var(--ec-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(9, 30, 52, 0.12);
}

a.card:focus {
    box-shadow: 0 20px 36px rgba(9, 30, 52, 0.12);
    outline: 3px solid #0f4c81;
    outline-offset: 2px;
}

a.card:focus-visible {
    outline: 3px solid #0f4c81;
    outline-offset: 2px;
}

.card-body {
    padding: 1.3rem;
}

.card-footer,
.card-header {
    border-color: rgba(15, 76, 129, 0.08);
    background: rgba(248, 251, 253, 0.9);
}

.btn-primary {
    color: #ffffff;
    border-color: var(--ec-primary);
    background-color: var(--ec-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--ec-primary-dark);
    background-color: var(--ec-primary-dark);
}

.btn-primary:focus,
.btn-outline-primary:focus,
.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.18);
}

.btn-outline-primary {
    color: var(--ec-primary);
    border-color: rgba(15, 76, 129, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background-color: var(--ec-primary);
    border-color: var(--ec-primary);
}

.btn-outline-secondary {
    color: #496174;
    border-color: rgba(73, 97, 116, 0.28);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #496174;
    border-color: #496174;
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    border-color: rgba(91, 112, 131, 0.2);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    background-color: rgba(255, 255, 255, 0.96);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 76, 129, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.12);
}

.alert {
    border: 0;
    border-radius: 0.95rem;
    box-shadow: 0 10px 24px rgba(9, 30, 52, 0.08);
}

.table {
    border-radius: 0.75rem;
    overflow: hidden;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(15, 76, 129, 0.03);
    --bs-table-hover-bg: rgba(15, 76, 129, 0.06);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
    color: var(--ec-muted);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.table-sort:hover,
.table-sort:focus {
    color: var(--ec-primary-dark);
}

.table-sort-indicator {
    opacity: 0.75;
}

.badge.text-bg-secondary {
    background-color: #d7e6f3 !important;
    color: var(--ec-primary-dark) !important;
}

dl.row dt {
    color: var(--ec-muted);
    font-weight: 700;
}

dl.row dd {
    margin-bottom: 0.55rem;
}

.list-group-item {
    border-color: rgba(15, 76, 129, 0.12);
    background-color: rgba(255, 255, 255, 0.72);
}

pre {
    color: var(--ec-text);
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(15, 76, 129, 0.12) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

a.card > .card-body {
    color: var(--ec-primary-dark);
    font-weight: 600;
}

a.card:hover > .card-body,
a.card:focus > .card-body {
    color: var(--ec-primary);
    background: rgba(236, 245, 252, 0.95);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.98), rgba(24, 111, 173, 0.92)),
        #0f4c81;
    color: #ffffff;
}

.hero-panel .text-muted,
.hero-panel .lead,
.hero-panel p,
.hero-panel li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.feature-panel {
    border-top: 4px solid rgba(217, 119, 6, 0.9);
}

.section-heading {
    color: var(--ec-primary-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.supporting-copy {
    color: var(--ec-muted);
    max-width: 42rem;
}

.registration-card,
.confirmation-card,
.auth-card {
    overflow: hidden;
}

.confirmation-card .lead {
    color: var(--ec-primary);
}

@media (max-width: 767.98px) {
    .page-shell {
        padding-bottom: 2rem;
    }

    .card-body {
        padding: 1.1rem;
    }

    .card {
        border-radius: 0.85rem;
    }
}

.roster-line-count {
    width: 6rem;
}

.roster-print-table td,
.roster-print-table th {
    vertical-align: middle;
}

.signature-line-cell {
    min-width: 14rem;
}

.signature-line {
    display: block;
    width: 100%;
    min-height: 1.2rem;
    border-bottom: 1px solid #7f8c99;
}

body.app-shell.checkin-day-screen {
    background: radial-gradient(circle at top, #fef9c3 0%, #f8fafc 45%, #eef2ff 100%);
}

body.app-shell.checkin-day-screen .container.page-shell {
    max-width: 100%;
}

.checkin-day-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkin-day-header {
    background: linear-gradient(120deg, #7c3aed 0%, #ec4899 45%, #f97316 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
}

.checkin-day-title {
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.9rem);
    letter-spacing: 0.02em;
}

.checkin-day-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.85rem, 1.3vw, 1rem);
}

.checkin-day-role {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.checkin-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.checkin-day-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1rem;
    padding: 1rem;
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    min-height: 0;
}

.checkin-day-card:nth-child(4n + 1) {
    background: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
}

.checkin-day-card:nth-child(4n + 2) {
    background: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
}

.checkin-day-card:nth-child(4n + 3) {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.checkin-day-card:nth-child(4n + 4) {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.checkin-day-class-name {
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    margin-bottom: 0.15rem;
    color: #ffffff;
}

.checkin-day-time {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    font-weight: 700;
}

.checkin-day-count-wrap {
    margin-top: 0.45rem;
}

.checkin-day-count {
    font-size: clamp(2.5rem, 4.8vw, 4.4rem);
    line-height: 0.95;
    color: #ffffff;
    font-weight: 800;
}

.checkin-day-count-label {
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.checkin-day-meta {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.76rem, 0.95vw, 0.88rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkin-day-empty {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f97316 0%, #fb7185 100%);
    color: #ffffff;
    border-radius: 1rem;
    min-height: 12rem;
}

.checkin-day-empty p {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    body.app-shell.checkin-day-screen .container.page-shell {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

@media print {
    .no-print,
    .site-navbar,
    footer {
        display: none !important;
    }

    body.app-shell.checkin-day-screen {
        overflow: hidden;
    }

    body.app-shell.checkin-day-screen .site-navbar {
        margin-bottom: 0.6rem !important;
    }

    body.app-shell.checkin-day-screen .container.page-shell {
        max-width: 100%;
        height: calc(100vh - 84px);
        padding-bottom: 0 !important;
    }

    .checkin-day-board {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        height: 100%;
    }

    .checkin-day-header {
        background: linear-gradient(135deg, rgba(11, 53, 88, 0.98), rgba(15, 76, 129, 0.96));
        color: #ffffff;
        box-shadow: 0 10px 22px rgba(9, 30, 52, 0.24);
    }

    .checkin-day-title {
        color: #ffffff;
        font-size: clamp(1.2rem, 2vw, 1.9rem);
        letter-spacing: 0.02em;
    }

    .checkin-day-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(0.85rem, 1.3vw, 1rem);
    }

    .checkin-day-role {
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

    .checkin-day-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 0.8rem;
        flex: 1;
        overflow: hidden;
        align-content: start;
    }

    .checkin-day-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 1rem;
        padding: 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
        border: 2px solid rgba(15, 76, 129, 0.14);
        box-shadow: 0 10px 24px rgba(9, 30, 52, 0.12);
        min-height: 0;
    }

    .checkin-day-card:nth-child(4n + 1) {
        border-top-color: #0f4c81;
    }

    .checkin-day-card:nth-child(4n + 2) {
        border-top-color: #0a7cb4;
    }

    .checkin-day-card:nth-child(4n + 3) {
        border-top-color: #d97706;
    }

    .checkin-day-card:nth-child(4n + 4) {
        border-top-color: #6a3bc2;
    }

    .checkin-day-class-name {
        font-size: clamp(1rem, 1.6vw, 1.45rem);
        margin-bottom: 0.15rem;
    }

    .checkin-day-time {
        color: #33546d;
        font-size: clamp(0.82rem, 1.1vw, 0.95rem);
        font-weight: 600;
    }

    .checkin-day-count-wrap {
        margin-top: 0.45rem;
    }

    .checkin-day-count {
        font-size: clamp(2.5rem, 4.8vw, 4.4rem);
        line-height: 0.95;
        color: #0b3558;
        font-weight: 800;
    }

    .checkin-day-count-label {
        font-size: clamp(0.8rem, 1.1vw, 1rem);
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: #496174;
        font-weight: 700;
    }

    .checkin-day-progress-wrap {
        margin-top: 0.45rem;
    }

    .checkin-day-progress-track {
        width: 100%;
        height: 0.7rem;
        border-radius: 999px;
        background: rgba(15, 76, 129, 0.12);
        overflow: hidden;
    }

    .checkin-day-progress-fill {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #0f4c81, #0a7cb4);
    }

    .checkin-day-progress-text {
        margin-top: 0.35rem;
        color: #33546d;
        font-size: clamp(0.8rem, 1vw, 0.92rem);
    }

    .checkin-day-meta {
        margin-top: 0.5rem;
        color: #33546d;
        font-size: clamp(0.76rem, 0.95vw, 0.88rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .checkin-day-empty {
        grid-column: 1 / -1;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 252, 0.95));
        border-radius: 1rem;
        min-height: 12rem;
    }

    .checkin-day-empty p {
        font-size: clamp(1.3rem, 2.4vw, 2rem);
        font-weight: 700;
        color: #33546d;
    }

    @media (max-width: 767.98px) {
        body.app-shell.checkin-day-screen {
            overflow: auto;
        }

        body.app-shell.checkin-day-screen .container.page-shell {
            height: auto;
        }
    }

    body.app-shell {
        background: #ffffff;
    }

    .container.page-shell {
        max-width: 100% !important;
        padding: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .table thead th {
        color: #000000;
    }
}
