﻿/*--------------------------------------------------------------
# Main Overrides
# Uses variables from main_colours.css — adapts to light/dark.
--------------------------------------------------------------*/

/* Alt accent (stays constant across themes) */
:root {
    --accent-color-alt: #d946ef;
    --accent-color-alt-rgb: 217, 70, 239;
    --accent-color-alt-hover: #c026d3;
    --accent-color-alt-light: #e879f9;
}

/* ─── Logo ─────────────────────────────────────────────── */
.header .logo img {
    max-height: 50px;
}

/* Headings inside Bootstrap alerts inherit the alert text colour
   instead of the global --heading-color, otherwise white headings
   disappear on pale alert backgrounds (e.g. "Verified" on alert-success). */
.alert h1,
.alert h2,
.alert h3,
.alert h4,
.alert h5,
.alert h6 {
    color: inherit;
}

/* ─── Section title ────────────────────────────────────── */
.section-title {
    padding-bottom: 10px;
}



.cn-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

    /* Hidden state — applied after page has loaded, or when navigating away */
    .cn-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0s linear 0.4s;
        pointer-events: none;
    }

    .cn-loader .spinner-border {
        width: 3rem;
        height: 3rem;
    }



/* ─── Alt-color service items ──────────────────────────── */
.services .service-item.cn-alt-color .icon-wrapper {
    background: color-mix(in srgb, var(--accent-color-alt), transparent 90%);
    color: var(--accent-color-alt);
}

.services .service-item.cn-alt-color::before {
    background: linear-gradient(90deg, var(--accent-color-alt), color-mix(in srgb, var(--accent-color-alt), transparent 50%));
}

.services .service-item.cn-alt-color:hover {
    border-color: var(--accent-color-alt);
}

    .services .service-item.cn-alt-color:hover .icon-wrapper {
        background: var(--accent-color-alt);
        color: var(--contrast-color);
    }

    .services .service-item.cn-alt-color:hover .read-more,
    .services .service-item.cn-alt-color:hover span {
        color: var(--accent-color-alt);
    }

.services .service-item.cn-alt-color.featured {
    border-color: var(--accent-color-alt);
    box-shadow: 0 10px 30px rgba(var(--accent-color-alt-rgb), 0.15);
}

.services .service-item.cn-alt-color .featured-tag {
    background: var(--accent-color-alt);
    box-shadow: 0 3px 10px rgba(var(--accent-color-alt-rgb), 0.3);
}

/* ─── Theme toggle button ──────────────────────────────── */
.cn-theme-toggle {
    position: relative;
    z-index: 10;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
    color: var(--default-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cn-theme-toggle {
    margin-right: 15px;
    margin-left: 2rem;
}

    .cn-theme-toggle:hover,
    .cn-theme-toggle:focus-visible {
        border-color: var(--accent-color);
        color: var(--accent-color);
        outline: none;
    }

    .cn-theme-toggle i {
        font-size: 16px;
        line-height: 1;
    }

.cn-theme-icon-dark {
    display: none;
}

.cn-theme-icon-light {
    display: inline-block;
}

[data-theme="light"] .cn-theme-icon-light {
    display: none;
}

[data-theme="light"] .cn-theme-icon-dark {
    display: inline-block;
}


/* ─── Nav dropdown logout button ───────────────────────── */
.cn-nav-dropdown-form {
    margin: 0;
}

.cn-nav-dropdown-button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: 0;
    background: transparent;
    color: var(--nav-dropdown-color);
    font-size: 15px;
    text-align: left;
    text-transform: none;
}

    .cn-nav-dropdown-button:hover,
    .cn-nav-dropdown-button:focus {
        color: var(--nav-dropdown-hover-color);
    }

/* ─── Semantic helpers ─────────────────────────────────── */
.green {
    color: #10b981 !important; /* emerald — semantic success, stays hardcoded */
}

/* ─── Profile card ─────────────────────────────────────── */
.cn-profile {
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    border-radius: 1rem;
    padding: 2rem;
}

.cn-profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.cn-profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    padding: 4px;
    background-color: var(--surface-color);
}

.cn-profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background-color: #10b981; /* semantic — online/active */
    border: 3px solid var(--surface-color);
    border-radius: 50%;
}

.cn-profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--heading-color);
}

.cn-profile-role {
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
}

.cn-profile-divider {
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    opacity: 1;
    margin: 1.75rem 0;
}

.cn-profile-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cn-profile-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    /* Keep "This month" / "All time" on a single line so all stat cells stay
       the same height, otherwise wraps would push numbers to inconsistent
       vertical positions across columns. */
    white-space: nowrap;
}

/* ─── Stats row used on Club Detail (Members + Guests breakdown) ──────────
   The label cell on the left names the row; the three stat cells share the
   remaining width. Each cell is a flex column with the LABEL pinned to the
   bottom — so the NUMBER always sits at the same baseline regardless of
   label-text length. */
.cn-stat-row {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.cn-stat-row-label {
    flex: 0 0 25%;
    align-self: center;
    text-align: end;
    font-size: 0.85rem;
    font-weight: 600;
    /* Theme-aware muted tone — adapts in dark mode (light gray on dark bg)
       and light mode (slate on white). */
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    padding-right: 0.5rem;
}

.cn-stat-row-label i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.cn-stat-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.cn-stat-cell .cn-profile-stat-number {
    /* Slightly tighter than the original single-row stat because we have
       two rows now and the label takes more vertical room beside the icon
       column. */
    font-size: 1.75rem;
    margin-bottom: 0.15rem;
    line-height: 1;
}

/* ─── Profile form ─────────────────────────────────────── */
.cn-profile-form {
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    border-radius: 1rem;
    padding: 2rem;
}

    .cn-profile-form .form-label {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--default-color), transparent 40%);
        margin-bottom: 0.4rem;
    }

    .cn-profile-form .form-control {
        background-color: var(--background-color);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
        color: var(--default-color);
        padding: 0.65rem 0.9rem;
        border-radius: 0.5rem;
    }

        .cn-profile-form .form-control:focus {
            background-color: var(--background-color);
            border-color: var(--accent-color);
            color: var(--default-color);
            box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 75%);
        }

        .cn-profile-form .form-control::placeholder {
            color: color-mix(in srgb, var(--default-color), transparent 55%);
        }

    .cn-profile-form .form-text {
        color: color-mix(in srgb, var(--default-color), transparent 55%);
        font-size: 0.8rem;
    }

.cn-profile-form-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    padding: 3px;
    background-color: var(--surface-color);
}

/* ID type small-print under "Verified" on the member dashboard */
.cn-idtype-hint {
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--default-color), transparent 45%);
    margin-top: 0.15rem;
}

    .cn-idtype-hint i {
        cursor: help;
        opacity: 0.7;
    }

/* ─── Club detail list ─────────────────────────────────── */
.cn-detail-list {
    margin: 0;
    padding: 0;
}

.cn-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

    .cn-detail-row:last-child {
        border-bottom: none;
    }

    .cn-detail-row dt {
        flex: 0 0 140px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--default-color), transparent 40%);
        margin: 0;
    }

        .cn-detail-row dt i {
            width: 1.25rem;
            color: var(--accent-color);
            margin-right: 0.4rem;
        }

    .cn-detail-row dd {
        flex: 1 1 auto;
        margin: 0;
        color: var(--heading-color);
        font-size: 1rem;
        word-break: break-word;
    }

/* ─── QR button + modal ────────────────────────────────── */
.cn-profile-qr-btn {
    background: transparent;
    border: none;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

    .cn-profile-qr-btn:hover,
    .cn-profile-qr-btn:focus {
        color: var(--accent-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
        outline: none;
    }

.cn-qr-modal .modal-content {
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    border-radius: 1rem;
    color: var(--default-color);
}

.cn-qr-modal .modal-header {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.cn-qr-modal .modal-title {
    font-weight: 700;
    color: var(--heading-color);
}

.cn-qr-modal-lead {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    margin-bottom: 1.25rem;
}

.cn-qr-modal-avatar-wrap {
    display: inline-block;
}

.cn-qr-modal-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    padding: 3px;
    background-color: var(--surface-color);
}

.cn-qr-modal-code {
    background-color: #ffffff; /* QR code must stay on white for reliable scanning */
    padding: 1rem;
    border-radius: 0.75rem;
    display: inline-block;
}

    .cn-qr-modal-code canvas {
        display: block;
    }

.cn-qr-modal-name {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0;
}

/* ─── Card collection ──────────────────────────────────── */
.cn-card-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
    border-radius: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .cn-card-detail:hover,
    .cn-card-detail:focus-visible {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 1px var(--accent-color), 0 0 18px color-mix(in srgb, var(--accent-color), transparent 65%);
        transform: translateY(-1px);
        text-decoration: none;
        color: inherit;
        outline: none;
    }

    .cn-card-detail > i {
        flex-shrink: 0;
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        color: var(--accent-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 88%);
        border-radius: 0.6rem;
    }

.cn-card-detail-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .cn-card-detail-content span {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--default-color), transparent 40%);
        margin-bottom: 0.25rem;
    }

    .cn-card-detail-content strong {
        font-size: 1rem;
        font-weight: 700;
        color: var(--heading-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }



/*scanning*/

/* ─── Scan step indicator ──────────────────────────────── */
.cn-scan-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cn-scan-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

    .cn-scan-step.active {
        opacity: 1;
    }

.cn-scan-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--default-color), transparent 85%);
    color: var(--default-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.cn-scan-step.active .cn-scan-step-num {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.cn-scan-step.done .cn-scan-step-num {
    background-color: #10b981;
    color: var(--contrast-color);
}

.cn-scan-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cn-scan-step-connector {
    flex: 0 0 3rem;
    height: 2px;
    background-color: color-mix(in srgb, var(--default-color), transparent 85%);
}

.cn-scan-icon {
    color: var(--accent-color);
}

/* ─── Club action buttons (under avatar) ───────────────── */
.cn-club-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cn-club-action {
    flex: 0 1 160px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 0.85rem;
    color: var(--default-color);
    text-decoration: none;
    transition: all 0.25s ease;
}

    .cn-club-action:hover,
    .cn-club-action:focus {
        border-color: var(--accent-color);
        color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-color), transparent 80%);
        text-decoration: none;
    }

    .cn-club-action i {
        font-size: 1.5rem;
    }

    .cn-club-action span {
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

/* Primary variant — solid fill, draws the eye */
.cn-club-action-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

    .cn-club-action-primary:hover,
    .cn-club-action-primary:focus {
        background-color: color-mix(in srgb, var(--accent-color), black 10%);
        border-color: color-mix(in srgb, var(--accent-color), black 10%);
        color: var(--contrast-color);
        box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color), transparent 60%);
    }













/* ─── Capture surface (custom file upload) ─────────────── */
.cn-capture-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cn-capture-surface {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    padding: 2rem;
    border: 2px dashed color-mix(in srgb, var(--default-color), transparent 70%);
    border-radius: 1rem;
    background-color: color-mix(in srgb, var(--default-color), transparent 95%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    text-align: center;
    color: var(--default-color);
}

    .cn-capture-surface:hover,
    .cn-capture-surface:focus-within {
        border-color: var(--accent-color);
        background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
    }

.cn-capture-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.25s ease;
}

    .cn-capture-placeholder i {
        color: var(--accent-color);
        margin-bottom: 0.5rem;
    }

    .cn-capture-placeholder p {
        margin: 0;
        font-weight: 600;
    }

    .cn-capture-placeholder .small {
        font-weight: 400;
        opacity: 0.7;
    }

/* When an image is loaded, solid border + hide placeholder */
.cn-capture-surface.has-image {
    border-style: solid;
    border-color: var(--accent-color);
    background-color: transparent;
}

    .cn-capture-surface.has-image .cn-capture-placeholder {
        opacity: 0;
        pointer-events: none;
    }

    /* Subtle overlay on captured image so "tap to retake" hint is readable */
    .cn-capture-surface.has-image::after {
        content: "Tap to retake";
        position: absolute;
        bottom: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 0.35rem 0.85rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 600;
        pointer-events: none;
    }

.cn-capture-surface {
    position: relative; /* needed for the ::after positioning */
}


/* ID type chooser cards */

.cn-idtype-chooser .cn-idtype-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.cn-idtype-chooser .cn-idtype-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cn-idtype-chooser .cn-idtype-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 130px;
    padding: 1.25rem 0.75rem;
    border: 2px solid color-mix(in srgb, var(--default-color), transparent 80%);
    border-radius: 0.85rem;
    background-color: color-mix(in srgb, var(--default-color), transparent 95%);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--default-color);
}

.cn-idtype-chooser .cn-idtype-card-body i {
    color: var(--accent-color);
}

.cn-idtype-chooser .cn-idtype-card:hover .cn-idtype-card-body {
    border-color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.cn-idtype-chooser .cn-idtype-card input:checked + .cn-idtype-card-body {
    border-color: var(--accent-color);
    background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}


/* action footer */

/* ─── Mobile action footer ─── */

.cn-action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-color, #fff);
    border-top: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    /* Respect iPhone home-bar gesture area */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.cn-action-footer-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 480px;
    margin: 0 auto;
    padding: 0.4rem 0;
}

.cn-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    color: var(--default-color, #555);
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
    transition: color 0.15s ease;
    min-height: 44px; /* Apple's recommended minimum touch target */
}

    .cn-action-item:hover,
    .cn-action-item:focus {
        color: var(--accent-color, #0d6efd);
        text-decoration: none;
    }

    .cn-action-item.active {
        color: var(--accent-color, #0d6efd);
        font-weight: 500;
    }

    .cn-action-item i {
        font-size: 1.5rem;
        line-height: 1;
    }

.cn-action-label {
    line-height: 1;
}

/* Add bottom padding to body so content isn't hidden behind the fixed footer */
body.has-action-footer {
    padding-bottom: 5rem;
}

/* On larger screens, hide it entirely — main footer takes over */
@media (min-width: 992px) {
    .cn-action-footer {
        display: none;
    }

    body.has-action-footer {
        padding-bottom: 0;
    }
}


/* member qr code*/

.cn-qr-card {
    background: var(--surface-color, #1f1f1f);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cn-qr-greeting {
    font-weight: 600;
}

.cn-qr-image-wrap {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    display: inline-block;
}

.cn-qr-image {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
}

.cn-qr-meta {
    margin-top: 0.5rem;
}

.cn-qr-refresh {
    text-decoration: none;
}

    .cn-qr-refresh i {
        transition: transform 0.4s ease;
    }

    .cn-qr-refresh.is-spinning i {
        transform: rotate(360deg);
    }

.cn-qr-expired .cn-qr-image {
    opacity: 0.25;
    filter: grayscale(1);
}

.cn-qr-locked-icon {
    font-size: 3rem;
    color: var(--accent-color, #8b5cf6);
    margin-bottom: 1rem;
}

/* ─── Locked-state list (dark-mode contrast) ─── */
.cn-qr-locked .list-group {
    background: transparent;
}

.cn-qr-locked .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--default-color, #e0e0e0);
}

    .cn-qr-locked .list-group-item span,
    .cn-qr-locked .list-group-item i {
        color: inherit;
    }

    .cn-qr-locked .list-group-item .text-success {
        color: #22c55e !important;
    }

.cn-qr-locked p.text-muted {
    color: #aaa !important;
}

.cn-qr-locked-icon {
    font-size: 3rem;
    color: var(--accent-color, #8b5cf6);
    margin-bottom: 1rem;
}


/* Club */
.cn-club-pitch {
    background: var(--surface-color, #1f1f1f);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cn-club-pitch-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color, #8b5cf6);
}

.cn-club-pitch-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

    .cn-club-pitch-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

        .cn-club-pitch-list li i {
            font-size: 1.25rem;
            flex-shrink: 0;
            margin-top: 0.15rem;
        }

.cn-club-pitch-footer {
    margin-top: 1.5rem;
}

.cn-club-pitch-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}


/* ─── Sticky footer ───
   Keep the footer pinned to the bottom of the viewport when content is short
   (especially noticeable on tall desktop screens). The minimal layout already
   uses this pattern inline; these rules cover the full _Layout.cshtml whose
   body always carries either `index-page` or `action-page` as a class. */
body.index-page,
body.action-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

    body.index-page > main.main,
    body.action-page > main.main {
        flex: 1 0 auto;
    }

    body.index-page > .footer,
    body.action-page > .footer {
        flex-shrink: 0;
    }


/* ─── Bootstrap modal — theme aware ───
   Bootstrap 5.3 picks light/dark via the data-bs-theme attribute on <html>, which
   the inline script in the layouts now syncs to the project's data-theme.
   Here we just bind Bootstrap's modal CSS variables to the project's surface /
   heading / default colors so the modal palette stays consistent with the rest
   of the app instead of using Bootstrap's stock dark gray. */
.modal {
    --bs-modal-bg: var(--surface-color);
    --bs-modal-color: var(--default-color);
    --bs-modal-header-border-color: color-mix(in srgb, var(--default-color), transparent 80%);
    --bs-modal-footer-border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.modal .modal-title {
    color: var(--heading-color);
}


/* ─── Currently checked in (member profile) ─────────────────────────── */

/* Club logo on each open check-in row. Same circular treatment as
   .cn-profile-avatar, scaled down for a list line. */
.cn-checkedin-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    background-color: var(--surface-color);
    flex-shrink: 0;
}

.cn-checkedin-list .list-group-item {
    background-color: var(--surface-color);
    color: var(--default-color);
    border-color: color-mix(in srgb, var(--default-color), transparent 85%);
}

.cn-checkedin-title {
    color: var(--heading-color);
}


/* ─── Dashboards ────────────────────────────────────────────────────── */

.cn-dash-tile,
.cn-dash-panel {
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 8px;
    padding: 1.25rem;
    height: 100%;
}

.cn-dash-tile-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--heading-color);
}

.cn-dash-tile-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--default-color), transparent 25%);
    margin-top: 0.25rem;
}

/* Arrivals-by-hour bars. Pure CSS — no charting library. */
.cn-dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 140px;
}

.cn-dash-bar-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.cn-dash-bar-track {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.cn-dash-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background-color: color-mix(in srgb, var(--accent-color), transparent 55%);
}

.cn-dash-bar.is-peak {
    background-color: var(--accent-color);
}

.cn-dash-bar-label {
    font-size: 0.65rem;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    margin-top: 0.35rem;
}

.cn-dash-table {
    color: var(--default-color);
}

.cn-dash-table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--default-color);
    border-bottom-color: color-mix(in srgb, var(--default-color), transparent 88%);
}

.cn-dash-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.cn-dash-filters .form-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--default-color), transparent 25%);
}


