﻿:root {
    --color-primary: #313F49;
    --color-primary-light: #426681;
    --color-primary-darken: #111c24;
    --color-secondary: #F7931E;
    --color-secondary-darken: #c76e09;
    --color-secondary-light: #e9993e;
    --color-text: #000000;
    --color-text-muted: #5A5A7A;
    --color-text-subtle: #9A9AB0;
    --color-divider: #CBD2DA;
    --color-bg: #fff;
    --color-bg-alt: #F5F7FA;
    --color-border: #E8ECF0;
    --color-surface: #fff;

    --color-primary-rgb: 0, 51, 102;
    --color-secondary-rgb: 232, 119, 34;
    --color-white-rgb: 255, 255, 255;

    --color-on-dark-subtle: rgba(255,255,255,0.50);
    --color-on-dark-secondary: rgba(255,255,255,0.75);
    --color-on-dark-primary: rgba(255,255,255,0.85);
}

/* ── Global resets ───────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

/* ── Spacing helpers ─────────────────────────────── */
.section-padding {
    padding: 80px 16px;
}

.section-padding-sm {
    padding: 48px 16px;
}

/* ── AppBar navigation ───────────────────────────── */
.mud-appbar .mud-button-label {
    text-transform: none;
}

/* ── Content sections ────────────────────────────── */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 16px;
    text-align: center;
}

.content-section {
    padding: 80px 16px;
}

.content-section-alt {
    padding: 80px 16px;
    background: var(--color-bg-alt);
}

.section-title {
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin-bottom: 12px !important;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 48px !important;
    max-width: 640px;
}

/* ── Info chip ───────────────────────────────────── */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--color-primary-rgb),0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px;
}

.info-chip .mud-icon-root {
    font-size: 1rem;
}

/* ── Blazor error UI ─────────────────────────────── */
#blazor-error-ui {
    background: var(--color-text);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

#blazor-error-ui .reload {
    color: var(--color-secondary);
}
