﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    background-color: #f5f7fb; /* your page bg */
}

body {
    margin: 0; /* remove the 8px default margin */
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2Lj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: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ---------------------------------------------------
   CommWhale CSS
----------------------------------------------------*/
.bg-primary-custom {
    background-color: #3B82F6 !important; /* Blue-500 */
    color: white !important;
}

.text-primary-custom {
    color: #3B82F6 !important;
}

.bg-secondary-custom {
    background-color: #E5E7EB !important; /* Gray-200 */
    color: #1f2937 !important;
}

.text-description {
    color: #495057
}

.badge-rounded {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 1rem;
    display: inline-block;
}

.card {
    background-color: white !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .card.event {
        transition: box-shadow 0.2s ease;
        cursor: pointer;
    }

        .card.event:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
        }

.rounded {
    border-radius: 0.5rem;
}

/* Font Sora for text */
.font-sora {
    font-family: 'Sora', sans-serif;
}
    /* Force icon fonts back on icon elements */
    .font-sora .e-icons, .e-icons {
        font-family: "e-icons" !important;
    }

    .font-sora .bi, .bi {
        font-family: "bootstrap-icons" !important;
    }

.btn-primary-custom {
    background-color: #3B82F6;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    border: none;
    display: block;
    text-align: center;
}

/* Status badges */
.bg-ongoing {
    background-color: #d2f4ea;
    color: #10B981;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #10B981;
}

.bg-waitlist-open {
    background-color: #FEF3C7;
    color: #F59E0B;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #F59E0B;
}

.bg-waitlist-close {
    background-color: #E5E7EB;
    color: #6B7280;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #6B7280;
}

.bg-upcoming {
    background-color: #E0F2FE;
    color: #0EA5E9;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #0EA5E9;
}

.bg-success-event {
    background-color: #ECFCCB;
    color: #84CC16;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #84CC16;
}

.bg-cancelled {
    background-color: #FEE2E2;
    color: #EF4444;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #EF4444;
}

.text-ongoing {
    color: #10B981 !important;
}

.text-waitlist-open {
    color: #F59E0B !important;
}

.text-waitlist-close {
    color: #6B7280 !important;
}

.text-upcoming {
    color: #0EA5E9 !important;
}

.text-success-event {
    color: #84CC16 !important;
}

.text-cancelled {
    color: #EF4444 !important;
}

.text-description-size {
    font-size: 14px;
}

.bg-white-custom {
    background-color: white;
}

.rounded-4 {
    border-radius: 1rem;
}

.btn-border-custom {
    border: 2px solid #3B82F6;
}

.font-sora * {
    font-family: 'Sora', sans-serif !important;
}

.markup-overrides h1,
.markup-overrides h2,
.markup-overrides h3 {
    font-size: 1.25rem !important; /* ~h4 */
    font-weight: 600 !important;
}

.markup-overrides h4,
.markup-overrides h5,
.markup-overrides h6 {
    font-size: 1.125rem !important; /* ~h5-h6 */
    font-weight: 500 !important;
}

.markup-overrides p {
    font-size: 0.875rem !important;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #333;
    font-family: 'Sora', sans-serif !important;
}

.markup-overrides strong {
    font-weight: 600;
}

/* Stars */
.star-rating .star {
    font-size: 1.8rem;
    color: #ccc;
    transition: color 0.2s;
    margin-right: 4px;
}

    .star-rating .star:hover,
    .star-rating .star:hover ~ .star {
        color: #aaa;
    }

.star-rating .filled {
    color: #FFB400;
}

/* Progress */
.progress {
    height: 10px;
    background: #f1f3f5;
    border-radius: 999px;
}

.progress-bar {
    border-radius: 999px;
}

/* Donut meter */
.donut {
    --value: 0; /* expects 0–100 */
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient( rgba(99,102,241,.35) calc(var(--value) * 1%), #eef2ff 0 );
    position: relative;
}

    .donut::after {
        content: "";
        position: absolute;
        inset: 22px;
        border-radius: 50%;
        background: #fff;
        box-shadow: inset 0 0 0 1px #eef2ff;
        z-index: 0;
    }

.donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    z-index: 1;
}

.bg-body-fullpage-custom {
    background-color: #f5f7fb;
    min-height: 100vh;
}

.bg-body-custom {
    background-color: #f5f7fb;
}

/* Notes grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

.notes-grid .card {
    height: 100%;
}

/* Tabs rail */
.tabs-rail {
    background: var(--bs-body-bg, #f5f7fb);
    border-radius: 9999px;
    padding: .25rem;
    display: flex;
    width: 100%;
    gap: .25rem;
}

    .tabs-rail .nav-item {
        flex: 1;
    }

    .tabs-rail .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 9999px !important;
        padding: .6rem 1rem;
        font-weight: 600;
        color: #111;
    }

        .tabs-rail .nav-link.active,
        .tabs-rail .nav-link:active,
        .tabs-rail .nav-link:focus {
            background: #3B82F6 !important;
            color: #fff !important;
            box-shadow: 0 1px 3px rgba(0,0,0,.12);
        }

        .tabs-rail .nav-link:not(.active):hover {
            background: #e8f1ff;
        }

/* Grid compact density */
.e-grid .e-rowcell, .e-grid .e-headercelldiv {
    padding-top: 6px;
    padding-bottom: 6px;
}

.e-grid .e-row {
    height: 38px;
}

/* Card shell */
.soft-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden; /* keep rounded corners for grid */
}

.card-header-lite {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

/* ---- Sticky stacking for card > grid (FIX) ---- */
.soft-card {
    --card-header-h: 40px; /* ≈ height of .card-header-lite */
    --toolbar-h: 44px; /* ≈ height of SfGrid toolbar */
}

    .soft-card .card-header-lite {
        position: sticky;
        top: 0;
        z-index: 50;
        background: #fff;
        min-height: var(--card-header-h);
    }

    .soft-card .e-grid .e-toolbar {
        position: sticky !important;
        top: var(--card-header-h) !important;
        z-index: 40 !important;
        background: #fff !important;
    }

    .soft-card .e-grid .e-gridheader {
        position: sticky !important;
        top: calc(var(--card-header-h) + var(--toolbar-h)) !important;
        z-index: 30 !important;
        background: #fff !important;
    }

    .soft-card .e-grid .e-gridcontent {
        position: relative;
        z-index: 10;
    }

/* Grid summary footer */
.grid-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding: .5rem .75rem;
    border: 1px solid #eee;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fafafa;
}

    .grid-summary .vr {
        width: 1px;
        height: 20px;
        background: #e2e2e2;
    }

/* Blue accent bar for soft cards */
.soft-card-accent-blue {
    position: relative;
}

    .soft-card-accent-blue::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg,#3B82F6,#2563EB);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

/* Tiny blue dot before titles */
.dot-blue {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3B82F6;
    display: inline-block;
}

/* Elevate + round the Syncfusion grid */
.grid-blue.e-grid {
    border: none !important;
    border-radius: 12px;
    overflow: hidden; /* clip rounded corners */
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Blue header with white text */
.grid-blue .e-gridheader, .grid-blue .e-gridheader .e-headercontent {
    background: #3B82F6 !important;
    color: #fff !important;
    border: none !important;
}

.grid-blue .e-headercell, .grid-blue .e-headercell .e-headertext {
    color: #fff !important;
    font-weight: 600;
}

/* Body: zebra + hover hint */
.grid-blue .e-gridcontent {
    background: #fff;
}

.grid-blue .e-altrow .e-rowcell {
    background: #f8fbff;
}

.grid-blue .e-row:hover .e-rowcell {
    background: #eef5ff !important;
}

/* Selection and active row */
.grid-blue .e-selectionbackground, .grid-blue .e-selectionbackground .e-rowcell {
    background: rgba(59,130,246,.14) !important;
}

.grid-blue .e-active .e-rowcell {
    border-color: rgba(59,130,246,.35) !important;
}

/* Toolbar polish */
.grid-blue .e-toolbar {
    background: #fff !important;
    border: none !important;
    padding: 6px 8px !important;
}

.grid-blue .e-tbar-btn {
    border-radius: 10px !important;
}

    .grid-blue .e-tbar-btn:hover {
        background: #eef5ff !important;
    }

/* For grids that edit in dialog, disable sticky so the editor isn't clipped */
.grid-no-sticky-edit .e-toolbar,
.grid-no-sticky-edit .e-gridheader {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

/* Checkboxes tinted to Blue-500 */
.grid-blue .e-checkbox-wrapper .e-frame {
    border-color: #3B82F6 !important;
}

.grid-blue .e-checkbox-wrapper .e-check {
    background: #3B82F6 !important;
    border-color: #3B82F6 !important;
}

.totals-right .chip,
.totals-right .grand-total-pill {
    width: fit-content;
}