html, body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    background-color: #05060a;
    color: #f1f5f9;
}

::selection { background: rgba(59, 130, 246, 0.35); color: white; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0.9rem;
}

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .625rem 1.25rem;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    color: white; font-weight: 600; border-radius: .5rem; border: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .625rem 1.25rem;
    background: rgba(255,255,255,.03);
    color: #e2e8f0; font-weight: 600; border-radius: .5rem;
    border: 1px solid rgba(255,255,255,.12); cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }

.btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .625rem 1.25rem;
    background: rgba(220, 38, 38, .12);
    color: #fca5a5; font-weight: 600; border-radius: .5rem;
    border: 1px solid rgba(220, 38, 38, .35); cursor: pointer;
    transition: background .15s ease;
}
.btn-danger:hover:not(:disabled) { background: rgba(220, 38, 38, .22); color: #fecaca; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .9rem;
    color: #cbd5e1; font-weight: 500; border-radius: .5rem;
    transition: background .15s ease, color .15s ease; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); color: white; }

.input {
    display: block; width: 100%;
    padding: .6rem .85rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .5rem;
    font-size: .95rem;
    color: #f1f5f9;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: #64748b; }
.input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.label {
    display: block; font-size: .85rem; font-weight: 600; color: #cbd5e1;
    margin-bottom: .35rem;
}

.chip {
    display: inline-flex; align-items: center; padding: .25rem .7rem;
    border-radius: 999px; font-size: .75rem; font-weight: 500;
    background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3);
}
.chip-green { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.3); }
.chip-red { background: rgba(220,38,38,.12); color: #fca5a5; border-color: rgba(220,38,38,.35); }
.chip-amber { background: rgba(245,158,11,.14); color: #fbbf24; border-color: rgba(245,158,11,.35); }
.chip-slate { background: rgba(148,163,184,.12); color: #cbd5e1; border-color: rgba(148,163,184,.28); }

.gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.field-error, .validation-message { color: #fca5a5; font-size: .8rem; margin-top: .25rem; }

.blazor-error-boundary { background: #dc2626; padding: 1rem; color: white; border-radius: .5rem; }
.blazor-error-boundary::after { content: "An error has occurred."; }

#blazor-error-ui {
    background: #dc2626; color: white;
    position: fixed; bottom: 0; left: 0; width: 100%;
    padding: .75rem 1.25rem; z-index: 1000; display: none;
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
