html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:root {
    /* App theme variables - single source of truth */
    --primary-color: #2B346B;
    --primary-light-color: #3B4583;
    --primary-dark-color: #1E2549;
    --accent-color: #3B82F6;

    /* Radzen theme bridges */
    --rz-border-width: 0px;
    --rz-primary: var(--primary-color);
    --rz-primary-color: var(--primary-color);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--primary-color);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.rz-body {
    background-color: #F3F3F3;
}

.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 var(--primary-color);
}

.content {
    padding-top: 1.1rem;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: red;
}

input.valid.modified,
text.valid.modified,
select.valid.modified {
    border-color: green;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* -------------------- */
/* Centralized utilities */
/* -------------------- */
.centered-loading { text-align: center; margin: 2rem 0; justify-content: center; }
.actions-spaced { display: flex; justify-content: space-between; margin-top: 1rem; }
.section-spaced { margin-top: 2rem; }
.mb-2r { margin-bottom: 2rem; }
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 3rem; }
.h-30vh { height: 30vh; }
.minh-200 { min-height: 200px; }
.dropdown-compact { width: 80px; }
.flex-1 { flex: 1 1 auto; }
.pos-relative { position: relative; }
.text-soft { color: #ccc; }

/* Splash/loading page */
.splash-container { position: absolute; top: 30vh; width: 100%; text-align: center; }
.center-row { display: flex; gap: 10px; justify-content: center; align-items: center; }

/* Layout & navigation */
.layout-two-columns { display: grid; grid-template-columns: auto 1fr; }
.sidebar-primary { background-color: var(--primary-color); }
.panelmenu-transparent { background-color: transparent; }
.app-title { margin-left: 1rem; font-size: 36px; font-weight: bold; }
.settings-button { border-radius: 20px; color: var(--primary-color); background-color: #F3F3F3; }

/* Component-specific helpers */
.current-Tarif-info { padding: 1rem; background-color: #f8f9fa; border-radius: 8px; margin-bottom: 1rem; }
.current-Tarif-info p { margin: 0.5rem 0; font-size: 0.95rem; }

/* Status badges (payments) */
.status-badge { font-size: 12px; padding: 5px 10px; border-radius: 15px; margin-right: 5px; }
.status-ok { background-color: #DCFCE7; color: #14532D; }
.status-not-ok { background-color: #FEF9C3; color: #713F12; }
