html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f4f4;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    min-height: 56px;
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

/* Push content below fixed navbar + optional offline banner */
.main-content {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.main-content.offline-active {
    padding-top: 100px;
}

/* Bottom nav for mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #212529;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid #444;
}

.bottom-nav a {
    color: #adb5bd;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    gap: 2px;
    flex: 1;
    padding: 6px 0;
    transition: color 0.15s;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: #ffc107;
}

.bottom-nav svg {
    width: 22px;
    height: 22px;
}

/* Offline banner */
.offline-banner {
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 4px 8px;
    font-size: 0.8rem;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1020;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Forms */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
    font-size: 0.8rem;
}

/* Section headers matching BlackhawkWeb2023 */
.section-header {
    background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Error UI */
#blazor-error-ui {
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Sync status */
.sync-pending {
    color: #ffc107;
    font-size: 0.75rem;
}

.sync-complete {
    color: #28a745;
    font-size: 0.75rem;
}

/* Loading */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

.loading-progress circle:last-child {
    stroke: #ffc107;
    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(20vh + 3.25rem) 0 auto 0.2rem;
    color: white;
}

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