/* ══════════════════════════════════════════
   ParkHive Design System
   ══════════════════════════════════════════ */

:root {
    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-active: rgba(16,185,129,0.15);
    --sidebar-width: 260px;

    /* Primary */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16,185,129,0.1);

    /* Surfaces */
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Text */
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Status */
    --success: #10b981;
    --success-light: rgba(16,185,129,0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245,158,11,0.1);
    --danger: #ef4444;
    --danger-light: rgba(239,68,68,0.1);
    --info: #3b82f6;
    --info-light: rgba(59,130,246,0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 10px 15px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 20px 25px rgba(0,0,0,0.04);

    /* Radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

/* ── Global typography & smoothing ── */
html, body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    background-color: var(--bg);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }

/* ── Focus ring ── */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
    border-color: var(--primary);
}

h1:focus {
    outline: none;
}

/* ── Form validation ── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ── Error boundary ── */
.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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ══════════════════════════════════════════
   Sidebar
   ══════════════════════════════════════════ */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    width: var(--sidebar-width);
    transition: width 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════
   Top Header
   ══════════════════════════════════════════ */
.top-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 56px;
    min-height: 56px;
}

/* ══════════════════════════════════════════
   Cards
   ══════════════════════════════════════════ */
.card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: var(--surface);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
}

/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(16,185,129,0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16,185,129,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    background-color: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

/* ══════════════════════════════════════════
   Tables
   ══════════════════════════════════════════ */
.table {
    font-size: 0.875rem;
    border-color: var(--border-light);
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom-width: 1px;
    border-color: var(--border);
    padding: 0.75rem 1rem;
    background: var(--bg);
}

.table tbody td {
    padding: 0.75rem 1rem;
    border-color: var(--border-light);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(16,185,129,0.04);
}

.table-light {
    --bs-table-bg: var(--bg);
}

.table-primary {
    --bs-table-bg: var(--primary-light);
}

/* ══════════════════════════════════════════
   Badges
   ══════════════════════════════════════════ */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    padding: 0.3em 0.65em;
    border-radius: var(--radius-full);
}

.badge.bg-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

.badge.bg-success {
    background-color: var(--success-light) !important;
    color: #059669 !important;
}

.badge.bg-warning {
    background-color: var(--warning-light) !important;
    color: #d97706 !important;
}

.badge.bg-danger {
    background-color: var(--danger-light) !important;
    color: #dc2626 !important;
}

.badge.bg-info {
    background-color: var(--info-light) !important;
    color: #2563eb !important;
}

.badge.bg-secondary {
    background-color: rgba(100,116,139,0.1) !important;
    color: var(--text-secondary) !important;
}

.badge.bg-light {
    background-color: var(--bg) !important;
    color: var(--text-secondary) !important;
}

/* ══════════════════════════════════════════
   Forms
   ══════════════════════════════════════════ */
.form-control, .form-select {
    border-radius: var(--radius);
    border-color: var(--border);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-height: 42px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control-sm, .form-select-sm {
    min-height: 36px;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ══════════════════════════════════════════
   Alerts
   ══════════════════════════════════════════ */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #dc2626;
}

.alert-success {
    background-color: var(--success-light);
    color: #059669;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #d97706;
}

.alert-info {
    background-color: var(--info-light);
    color: #2563eb;
}

/* ══════════════════════════════════════════
   Pagination
   ══════════════════════════════════════════ */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    background: var(--surface);
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   Nav Tabs — Modern pill style
   ══════════════════════════════════════════ */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0;
    transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary-light);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   Progress Bar
   ══════════════════════════════════════════ */
.progress {
    background-color: var(--border-light);
    border-radius: var(--radius-full);
    height: 4px;
}

.progress-bar {
    background-color: var(--primary);
    transition: width 0.35s ease;
    border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════
   Smooth transitions on interactive elements
   ══════════════════════════════════════════ */
.btn, .nav-link, .badge, .form-control, .form-select {
    transition: all 0.15s ease;
}

/* ══════════════════════════════════════════
   Spinner refinement
   ══════════════════════════════════════════ */
.spinner-border {
    color: var(--primary);
}

.btn .spinner-border {
    color: inherit;
}

/* ══════════════════════════════════════════
   Links
   ══════════════════════════════════════════ */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

/* ══════════════════════════════════════════
   Scrollbar (subtle)
   ══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ══════════════════════════════════════════
   Auth Split Layout
   ══════════════════════════════════════════ */
.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    width: 45%;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #1e293b 50%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(16,185,129,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16,185,129,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-left .auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.auth-left .auth-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-left .auth-tagline {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Decorative shapes */
.auth-left .shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    z-index: 0;
}

.auth-left .shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -50px;
}

.auth-left .shape-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: -30px;
}

.auth-left .shape-3 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 20%;
}

.auth-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 2rem;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-form-container .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.auth-form-container .form-control {
    min-height: 46px;
    font-size: 0.9375rem;
}

.auth-form-container .btn-primary {
    min-height: 46px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

.auth-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16,185,129,0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ══════════════════════════════════════════
   Stat Cards (Dashboard)
   ══════════════════════════════════════════ */
.stat-card {
    border-left: 3px solid var(--primary);
    padding: 1.25rem 1.5rem;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* ══════════════════════════════════════════
   Welcome Banner
   ══════════════════════════════════════════ */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.welcome-banner h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.welcome-banner p {
    opacity: 0.85;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ══════════════════════════════════════════
   Tenant Selector
   ══════════════════════════════════════════ */
.tenant-selector {
    position: relative;
}

.tenant-selector-heading {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tenant-selector-dropdown {
    position: absolute;
    z-index: 1050;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
}

.tenant-selector-item {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tenant-selector-item:last-child {
    border-bottom: none;
}

.tenant-selector-item:hover {
    background: var(--hover-bg, #f8f9fa);
}

.tenant-selector-name {
    font-weight: 500;
}

/* ══════════════════════════════════════════
   Permission Badges
   ══════════════════════════════════════════ */
.perm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    gap: 0.35rem;
}

/* ══════════════════════════════════════════
   Filter Chips
   ══════════════════════════════════════════ */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ══════════════════════════════════════════
   Status Dots
   ══════════════════════════════════════════ */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.status-dot.active { background-color: var(--success); }
.status-dot.suspended { background-color: var(--warning); }
.status-dot.inactive { background-color: var(--text-muted); }
.status-dot.submitted { background-color: var(--warning); }
.status-dot.underreview { background-color: var(--info); }
.status-dot.approved { background-color: var(--success); }
.status-dot.rejected { background-color: var(--danger); }

/* ══════════════════════════════════════════
   Tenant Cards
   ══════════════════════════════════════════ */
.tenant-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.tenant-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   Search Input with Icon
   ══════════════════════════════════════════ */
.search-input-group {
    position: relative;
}

.search-input-group .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-group .form-control {
    padding-left: 2.25rem;
    width: 220px;
}

/* ══════════════════════════════════════════
   Wizard Steps
   ══════════════════════════════════════════ */
.wizard-steps {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.wizard-step.active {
    color: var(--primary);
}

.wizard-step.completed {
    color: var(--success);
}

.wizard-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    flex-shrink: 0;
}

.wizard-step.active .wizard-step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.75rem;
    min-width: 2rem;
}

.wizard-step-connector.completed {
    background: var(--success);
}

/* ══════════════════════════════════════════
   Empty States
   ══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════
   Avatar
   ══════════════════════════════════════════ */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-md {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
}

.avatar-header {
    background: var(--primary-light);
    color: var(--primary);
}

.avatar-sidebar {
    background: rgba(255,255,255,0.15);
    color: white;
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
}

/* ══════════════════════════════════════════
   Page header
   ══════════════════════════════════════════ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0;
}

.page-header .count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15em 0.5em;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

/* ══════════════════════════════════════════
   Utility classes
   ══════════════════════════════════════════ */

/* Text colors */
.color-muted { color: var(--text-muted); }
.color-secondary { color: var(--text-secondary); }
.color-primary { color: var(--primary); }
.color-danger { color: var(--danger); }

/* Font sizes — standardized scale */
.text-xs { font-size: 0.8125rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 0.9375rem; }

/* Small icon button (back arrows, etc.) */
.btn-icon-sm { padding: 0.25rem 0.625rem; }

/* Definition list label style */
.dl-label { color: var(--text-muted); }
.dl-body { font-size: 0.875rem; }

/* Stat card color variants */
.stat-card-success { border-left-color: var(--success); }
.stat-card-info { border-left-color: var(--info); }
.stat-card-warning { border-left-color: var(--warning); }

/* Stat icon color variants */
.stat-icon-primary { background: var(--primary-light); color: var(--primary); }
.stat-icon-success { background: var(--success-light); color: var(--success); }
.stat-icon-info { background: var(--info-light); color: var(--info); }
.stat-icon-warning { background: var(--warning-light); color: var(--warning); }

/* Status display (dot + label) */
.status-display {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
}

/* Tenant card sections */
.tenant-card .card-body { padding: 1.25rem 1.5rem; }
.tenant-card .card-footer { padding: 0.625rem 1.5rem; }

/* Card link arrow */
.card-link-label {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   Responsive: collapse auth split on small screens
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
    }
    .auth-left {
        width: 100%;
        min-height: 200px;
        padding: 2rem 1rem;
    }
    .auth-right {
        width: 100%;
        padding: 2rem 1rem;
    }
    .sidebar {
        width: 100%;
        min-height: auto;
    }
}

/* ══════════════════════════════════════════
   Styled 404 and Error pages
   ══════════════════════════════════════════ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-page .error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
}
