﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    background-color: #f5f7fb;
}

body {
    margin: 0;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ============ App Tokens ============ */
:root {
    --cw-ink: #0f172a;
    --cw-muted: #64748b;
    --cw-surface: #ffffff;
    --cw-surface-2: #f5f7fb;
    --cw-ring: #e5e7eb;
    --cw-blue: #3B82F6;
    --cw-blue-600: #2563EB;
    --cw-shadow: 0 2px 12px rgba(2,6,23,.08);
}

/* ============ Utilities / Text / Buttons ============ */
.bg-primary-custom {
    background-color: #3B82F6 !important;
    color: #fff !important;
}

.text-primary-custom {
    color: #3B82F6 !important;
}

.bg-secondary-custom {
    background-color: #E5E7EB !important;
    color: #1f2937 !important;
}

.text-description {
    color: #495057;
}

.badge-rounded {
    padding: .4rem .9rem;
    font-size: .85rem;
    border-radius: 1rem;
    display: inline-block;
}

.card {
    background-color: #fff !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .card.event {
        transition: box-shadow .2s ease;
        cursor: pointer;
    }

        .card.event:hover {
            box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
        }

.rounded {
    border-radius: .5rem;
}

.rounded-4 {
    border-radius: 1rem;
}

.btn-border-custom {
    border: 2px solid #3B82F6;
}

.btn-primary-custom {
    background-color: #3B82F6;
    color: #fff;
    padding: .4rem 1rem;
    border-radius: 1rem;
    border: none;
    text-align: center;
    display: inline-block; /* inline-block makes it look more like a button */
    text-decoration: none; /* removes underline if it's an <a> */
    cursor: pointer;
    transition: all 0.3s ease; /* smooth animation */
}

.btn-primary-custom:hover {
    background-color: #3B82F6;
    color: #fff;
    transform: translateY(-3px); /* subtle lift */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* glow effect */
    text-decoration: none; /* ensure no underline */
}

.font-sora, .font-sora * {
    font-family: 'Sora', sans-serif !important;
}
    /* restore icon fonts */
    .font-sora .e-icons, .e-icons {
        font-family: "e-icons" !important;
    }

    .font-sora .bi, .bi {
        font-family: "bootstrap-icons" !important;
    }

.text-description-size {
    font-size: 14px;
}

.bg-white-custom {
    background-color: #fff;
}

.bg-ongoing {
    background: #d2f4ea;
    color: #10B981;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #10B981;
}

.bg-waitlist-open {
    background: #FEF3C7;
    color: #F59E0B;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #F59E0B;
}

.bg-waitlist-close {
    background: #E5E7EB;
    color: #6B7280;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #6B7280;
}

.bg-upcoming {
    background: #E0F2FE;
    color: #0EA5E9;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #0EA5E9;
}

.bg-success-event {
    background: #ECFCCB;
    color: #84CC16;
    font-size: 12px;
    padding: 5px 10px;
    border: 1px solid #84CC16;
}

.bg-cancelled {
    background: #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;
}

/* Markup overrides */
.markup-overrides h1, .markup-overrides h2, .markup-overrides h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.markup-overrides h4, .markup-overrides h5, .markup-overrides h6 {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
}

.markup-overrides p {
    font-size: .875rem !important;
    font-weight: 400;
    margin-bottom: .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 .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;
}

.progress-thin {
    height: 8px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 999px;
}

/* gradients to match your palette */
.progress-bar-green {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.progress-bar-amber {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-bar-red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Donut */
.donut {
    --value: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(rgba(99,102,241,.35) calc(var(--value)*1%), #eef2ff 0);
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eef2ff;
    z-index: -1;
}

.donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    z-index: 1;
    pointer-events: none;
}

.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;
    }
}

/* ============ Tabs rail (ensure above cards) ============ */
.tabs-rail {
    background: var(--bs-body-bg, #f5f7fb);
    border-radius: 9999px;
    padding: .25rem;
    display: flex;
    width: 100%;
    gap: .25rem;
    position: relative; /* create stacking context */
}

    .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 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: visible; /* keep rounded corners */
    isolation: isolate; /* its children z-index won't bleed globally */
    --card-header-h: 40px; /* ≈ header */
    --toolbar-h: 44px; /* ≈ grid toolbar */
}

.card-header-lite {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

/* ----- Sticky ONLY on desktops (>=992px) ----- */
@media (min-width: 992px) {
    .soft-card .card-header-lite .tabs-rail {
        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;
    }
}
/* ----- On small screens, disable sticky to avoid overlap ----- */
@media (max-width: 991.98px) {
    .soft-card .card-header-lite,
    .soft-card .e-grid .e-toolbar,
    .soft-card .e-grid .e-gridheader {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }
}

/* Grid content layer */
.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;
    }

/* Accent bar */
.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;
}

.soft-card-accent-amber {
    position: relative;
}

.soft-card-accent-amber::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dot-blue {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3B82F6;
    display: inline-block;
}

/* ============ Syncfusion Grid theme (blue) ============ */
.grid-blue.e-grid {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.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;
}

.grid-blue .e-gridcontent {
    background: #fff;
}

.grid-blue .e-altrow .e-rowcell {
    background: #f8fbff;
}

.grid-blue .e-row:hover .e-rowcell {
    background: #eef5ff !important;
}

.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;
}

/* keep some vertical space even with 0 items */
.grid-blue .e-gridcontent,
.grid-blue .e-content { /* both to cover different builds */
    min-height: 220px; /* tweak to taste */
}

/* make the “No records to display” row fill the space nicely */
.grid-blue .e-emptyrow td {
    height: 220px; /* matches the min-height above */
    vertical-align: middle;
}

/* Toolbar */
.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;
    }

/* Dialog-edit grids: opt out of sticky */
.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;
}

/* ============ KPI cards ============ */
.metric {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: .85rem 1rem;
    overflow: hidden;
}

    .metric::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        background: var(--metric-accent, linear-gradient(90deg,#3B82F6,#2563EB));
    }

    .metric .metric-label {
        font-size: .85rem;
    }

    .metric .metric-value {
        font-weight: 700;
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .metric .metric-sub {
        margin-left: .4rem;
        font-weight: 600;
        font-size: .85rem;
        color: #6b7280;
    }

.metric-blue {
    --metric-accent: linear-gradient(90deg,#3B82F6,#2563EB);
}

.metric-green {
    --metric-accent: linear-gradient(90deg,#16a34a,#22c55e);
}

.metric-amber {
    --metric-accent: linear-gradient(90deg,#f59e0b,#fbbf24);
}

.metric-slate {
    --metric-accent: linear-gradient(90deg,#64748b,#94a3b8);
}

/* Participants list */
.participants-plain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .4rem;
    white-space: normal;
    word-break: break-word;
}

    .participants-plain .participant {
        font-size: .9rem;
        color: #111;
    }

    .participants-plain .sep {
        color: #9aa0a6;
        line-height: 1;
    }

