/* ============================================================
   Shield — citizen emergency PWA (demo)
   Mobile-first, light theme, high contrast, large touch targets.
   ============================================================ */

:root {
    --c-bg: #F4F5F7;
    --c-surface: #FFFFFF;
    --c-ink: #101828;
    --c-muted: #475467;
    --c-line: #E4E7EC;
    --c-border: #D0D5DD;

    --c-primary: #E8502F;
    --c-primary-dark: #C43D20;
    --c-primary-tint: #FDEEE9;

    --c-green: #0E7A3C;
    --c-green-dark: #05603A;
    --c-green-tint: #E7F6EC;

    --c-red: #B3261E;
    --c-red-dark: #912018;
    --c-red-tint: #FEE4E2;

    --c-amber-dark: #93370D;
    --c-amber-tint: #FEF0C7;

    --c-blue: #175CD3;

    --radius: 16px;
    --radius-lg: 20px;
    --tab-height: 64px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);

    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: var(--c-primary-dark);
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid rgba(232, 80, 47, .55);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- App shell ---------- */

.app-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.app-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 12px 8px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--c-ink);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .01em;
    min-height: 44px;
}

    .brand svg {
        width: 27px;
        height: 27px;
        color: var(--c-primary);
    }

.header-actions {
    display: flex;
    gap: 2px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--c-muted);
    text-decoration: none;
}

    .icon-btn svg {
        width: 25px;
        height: 25px;
    }

    .icon-btn.active {
        color: var(--c-primary);
        background: var(--c-primary-tint);
    }

.offline-bar {
    background: #101828;
    color: #FCD34D;
    text-align: center;
    font-size: .84rem;
    font-weight: 600;
    padding: 7px 12px;
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 16px calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- Bottom tab navigation ---------- */

.tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 130px));
    justify-content: center;
    background: var(--c-surface);
    border-top: 1px solid var(--c-line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--tab-height);
    padding: 8px 4px 9px;
    color: var(--c-muted);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
}

    .tab-item svg {
        width: 25px;
        height: 25px;
    }

    .tab-item.active {
        color: var(--c-primary);
    }

.tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 26px);
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--c-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

    .btn svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(232, 80, 47, .35);
}

.btn-secondary {
    background: var(--c-surface);
    color: var(--c-ink);
    border: 2px solid var(--c-border);
}

.btn-huge {
    min-height: 72px;
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
}

.btn-safe {
    background: var(--c-green);
    color: #fff;
}

.btn-help {
    background: var(--c-surface);
    color: var(--c-red);
    border: 3px solid var(--c-red);
}

.btn-link {
    background: none;
    border: none;
    padding: 12px;
    min-height: 44px;
    color: var(--c-muted);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---------- Cards & tiles ---------- */

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.hint {
    color: var(--c-muted);
    font-size: .9rem;
}

.hint-warn {
    color: var(--c-amber-dark);
    font-weight: 600;
}

.loading-note {
    color: var(--c-muted);
    text-align: center;
    padding: 28px 0;
}

/* Status card (CALM) */

.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 26px 18px;
}

.status-card--ok {
    background: var(--c-green-tint);
    border-color: #A9DFC0;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-green);
    color: #fff;
}

    .status-icon svg {
        width: 36px;
        height: 36px;
    }

.status-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c-green-dark);
}

.status-sub {
    color: var(--c-green-dark);
    font-weight: 600;
}

/* Risk tiles */

.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tile {
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
}

.tile-label {
    font-size: .82rem;
    font-weight: 600;
    opacity: .85;
}

.tile-value {
    font-size: 1.15rem;
    font-weight: 800;
}

.sev-ok {
    background: var(--c-green-tint);
    color: var(--c-green-dark);
    border-color: #A9DFC0;
}

.sev-warn {
    background: var(--c-amber-tint);
    color: var(--c-amber-dark);
    border-color: #F5D78E;
}

.sev-danger {
    background: var(--c-red-tint);
    color: var(--c-red-dark);
    border-color: #F4A9A3;
}

/* ---------- Crisis state ---------- */

.crisis-banner {
    background: var(--c-red);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(179, 38, 30, .35);
}

.crisis-level {
    align-self: flex-start;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.crisis-instruction {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
}

.crisis-meta {
    font-size: .88rem;
    opacity: .92;
}

/* Static map preview placeholder */

.map-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 132px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    text-decoration: none;
    color: var(--c-ink);
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)),
        repeating-linear-gradient(0deg, #CBD5E1 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, #CBD5E1 0 1px, transparent 1px 28px),
        #EEF2F6;
}

    .map-preview svg {
        width: 34px;
        height: 34px;
        color: var(--c-primary);
    }

.map-preview-title {
    font-weight: 800;
    font-size: 1.05rem;
}

.map-preview-sub {
    color: var(--c-muted);
    font-size: .88rem;
    font-weight: 600;
}

/* Check-in confirmation */

.checkin-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 24px 18px;
}

.checkin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--c-green);
    color: #fff;
}

    .checkin-icon svg {
        width: 32px;
        height: 32px;
    }

    .checkin-icon.checkin-icon--help {
        background: var(--c-red);
    }

    .checkin-icon.checkin-icon--queued {
        background: var(--c-amber-dark);
    }

.checkin-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.note-offline {
    background: var(--c-amber-tint);
    color: var(--c-amber-dark);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 600;
}

.note-ok {
    color: var(--c-green-dark);
    font-size: .92rem;
    font-weight: 600;
}

/* ---------- Map screen ---------- */

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-muted);
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: var(--c-green); }
.dot-blue { background: var(--c-blue); }
.dot-red { background: #D92D20; }

.map-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    background: #E9EDF2;
}

.map-canvas {
    height: min(60vh, 520px);
    min-height: 320px;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--c-muted);
    background: rgba(233, 237, 242, .92);
}

.map-overlay--error {
    color: var(--c-red-dark);
}

/* ---------- Report (Prijavi) ---------- */

.step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.08rem;
    font-weight: 800;
}

.photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 116px;
    padding: 18px;
    border: 2px dashed var(--c-border);
    border-radius: var(--radius);
    color: var(--c-muted);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

    .photo-drop svg {
        width: 30px;
        height: 30px;
    }

.photo-preview {
    position: relative;
}

    .photo-preview img {
        display: block;
        width: 100%;
        max-height: 260px;
        object-fit: cover;
        border-radius: var(--radius);
        border: 1px solid var(--c-line);
    }

.photo-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(16, 24, 40, .78);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: var(--c-green-tint);
    color: var(--c-green-dark);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 700;
    font-size: .95rem;
}

.geo-coords {
    font-size: .92rem;
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 14px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-ink);
    cursor: pointer;
}

.cat-emoji {
    font-size: 1.7rem;
    line-height: 1;
}

.cat-card.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-tint);
    color: var(--c-primary-dark);
}

input[type="text"], input[type="tel"], textarea, select {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 2px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface);
    color: var(--c-ink);
    font-family: inherit;
    font-size: 1rem;
}

    input[type="text"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
        border-color: var(--c-primary);
        outline: none;
    }

select:disabled {
    background: var(--c-bg);
    color: var(--c-muted);
}

.char-counter {
    align-self: flex-end;
    font-size: .8rem;
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
}

.field-label {
    font-weight: 700;
    font-size: .95rem;
}

/* Success + queue */

.success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 28px 18px;
}

.report-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 10px;
    padding: 6px 14px;
}

.pending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

    .pending-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 2px;
        border-bottom: 1px solid var(--c-line);
        font-size: .95rem;
    }

        .pending-list li:last-child {
            border-bottom: none;
        }

.pending-meta {
    color: var(--c-muted);
    font-size: .85rem;
    white-space: nowrap;
}

/* ---------- Uputstva ---------- */

.acc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .acc details {
        background: var(--c-surface);
        border: 1px solid var(--c-line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .acc summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 17px 18px;
        font-size: 1.05rem;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
        min-height: 56px;
    }

        .acc summary::-webkit-details-marker {
            display: none;
        }

        .acc summary::after {
            content: "";
            width: 9px;
            height: 9px;
            margin-left: auto;
            border-right: 2.5px solid var(--c-muted);
            border-bottom: 2.5px solid var(--c-muted);
            transform: rotate(45deg);
            transition: transform .15s ease;
            flex-shrink: 0;
        }

    .acc details[open] summary::after {
        transform: rotate(-135deg);
    }

    .acc .acc-emoji {
        font-size: 1.3rem;
    }

    .acc ul {
        margin: 0;
        padding: 0 18px 16px 38px;
    }

    .acc li {
        margin: 7px 0;
        line-height: 1.5;
    }

.tel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 76px;
    padding: 12px;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.tel-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-primary);
}

.tel-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--c-muted);
}

/* ---------- Volunteer profile ---------- */

.switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    font-weight: 700;
    cursor: pointer;
}

    .switch-row input[type="checkbox"] {
        width: 26px;
        height: 26px;
        accent-color: var(--c-primary);
        flex-shrink: 0;
        cursor: pointer;
    }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 2px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-ink);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
}

    .chip.selected {
        border-color: var(--c-primary);
        background: var(--c-primary-tint);
        color: var(--c-primary-dark);
    }

.chip-status {
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.chip-status--ok {
    background: var(--c-green-tint);
    color: var(--c-green-dark);
}

.chip-status--pending {
    background: var(--c-amber-tint);
    color: var(--c-amber-dark);
}

.history-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--c-line);
}

    .history-item .history-top {
        width: 100%;
    }

    .history-item:last-child {
        border-bottom: none;
    }

.history-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

/* ---------- Mobilization ---------- */

.mob-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #7C3A22;
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(124, 58, 34, .35);
}

    .mob-banner > svg {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

.mob-banner-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.mob-banner-kind {
    font-size: .8rem;
    font-weight: 700;
    opacity: .92;
}

.mob-banner-title {
    font-size: 1.02rem;
    font-weight: 800;
}

.mob-card {
    background: #14181F;
    color: #E5E7EB;
    border: 1px solid #232936;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mob-head {
    background: #7C3A22;
    color: #fff;
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mob-kind {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    opacity: .95;
}

    .mob-kind svg {
        width: 18px;
        height: 18px;
    }

.mob-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.mob-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.mob-rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mob-row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px;
    font-size: .97rem;
}

    .mob-row dt {
        color: #9CA3AF;
        font-weight: 600;
    }

    .mob-row dd {
        margin: 0;
        font-weight: 700;
    }

.mob-stats {
    background: #1D242E;
    border: 1px solid #2A3140;
    border-radius: 12px;
    padding: 10px 13px;
    font-size: .9rem;
    color: #CBD5E1;
}

    .mob-stats .ok {
        color: #4ADE80;
        font-weight: 800;
    }

.mob-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-coming {
    background: #15825C;
    color: #fff;
    flex-direction: column;
    gap: 2px;
    min-height: 68px;
    border-radius: var(--radius);
}

.btn-cant {
    background: transparent;
    color: #E5E7EB;
    border: 2px solid #3A4150;
    flex-direction: column;
    gap: 2px;
    min-height: 68px;
    border-radius: var(--radius);
}

.btn-sub {
    font-size: .78rem;
    font-weight: 600;
    opacity: .75;
}

.mob-q {
    font-weight: 700;
    color: #E5E7EB;
}

.mob-optional {
    color: #9CA3AF;
    font-weight: 600;
    font-size: .85rem;
}

.chip-dark {
    background: transparent;
    border-color: #3A4150;
    color: #E5E7EB;
}

    .chip-dark.selected {
        border-color: #15825C;
        background: rgba(21, 130, 92, .18);
        color: #4ADE80;
    }

.input-dark,
.mob-body input[type="text"] {
    background: #1D242E;
    border: 2px solid #3A4150;
    color: #E5E7EB;
}

    .input-dark:focus,
    .mob-body input[type="text"]:focus {
        border-color: #15825C;
    }

.btn-link-dark {
    color: #9CA3AF;
}

.mob-confirm {
    background: #1D242E;
    border: 1px solid #2A3140;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.mob-confirm-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #E5E7EB;
}

.mob-confirm-title--ok {
    color: #4ADE80;
}

.mob-confirm-sub {
    font-size: .88rem;
    color: #9CA3AF;
}

/* Map location picker (report screen) */

.map-canvas--picker {
    height: 280px;
    min-height: 280px;
}

/* ---------- Postavke ---------- */

.demo-chips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-footer {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--c-muted);
    font-size: .85rem;
    text-align: center;
}

.demo-chip {
    align-self: center;
    background: var(--c-red-tint);
    color: var(--c-red-dark);
    border: 1px solid #F4A9A3;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 800;
}

.notif-status {
    display: inline-block;
    font-weight: 700;
}

/* ---------- Blazor loading screen ---------- */

.app-loading {
    position: relative;
    height: 100dvh;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 25vh 0 auto 0;
    margin: 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #E4E7EC;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #E8502F;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(25vh + 3.25rem) 0 auto 0.2rem;
    color: var(--c-muted);
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Učitavanje");
    }

.app-loading-name {
    position: absolute;
    inset: calc(25vh + 9.5rem) 0 auto 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-ink);
}

/* ---------- Blazor error UI ---------- */

#blazor-error-ui {
    color-scheme: light only;
    background: var(--c-amber-tint);
    color: var(--c-amber-dark);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 2.5rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-weight: 600;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: var(--c-red);
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem;
}

    .blazor-error-boundary::after {
        content: "Došlo je do greške.";
    }
