@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #0b132b;
    --muted: #66759c;
    --surface: #ffffff;
    --surface-alt: #0f1320;
    --line: rgba(15, 19, 32, 0.08);
    --accent: #4f8bff;
    --accent-2: #12d8c8;
    --accent-warm: #ffb661;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background: radial-gradient(120% 140% at 20% 20%, rgba(84, 130, 255, 0.15), transparent), radial-gradient(90% 120% at 80% 0%, rgba(255, 199, 97, 0.12), transparent), #f6f7fb;
    color: var(--ink);
    margin: 0;
    line-height: 1.6;
}

a, .btn-link {
    color: #175fff;
    text-decoration: none;
}

a:hover, .btn-link:hover {
    color: #0f4ee1;
}

.btn-primary,
.btn-gradient {
    border: none;
    background: linear-gradient(135deg, #4966ff, #10b6ff);
    color: #fff;
    box-shadow: 0 10px 30px rgba(28, 119, 255, 0.35);
}

.btn-primary:hover,
.btn-gradient:hover {
    background: linear-gradient(135deg, #3a53e6, #0fa0e6);
}

.btn-ghost {
    color: #0f172a;
    background: rgba(0, 16, 61, 0.04);
    border: 1px solid rgba(0, 16, 61, 0.1);
}

.btn-ghost:hover {
    background: rgba(0, 16, 61, 0.08);
    border-color: rgba(0, 16, 61, 0.18);
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fbfbfd;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #4f8bff;
    box-shadow: 0 0 0 0.2rem rgba(79, 139, 255, 0.15);
}

label.form-label {
    font-weight: 600;
    color: #0f172a;
}

.glass-panel {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 19, 32, 0.05);
    box-shadow: 0 25px 60px rgba(12, 23, 41, 0.08);
}

.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8b9bbf;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.table {
    color: #0f172a;
}

.table > :not(caption) > * > * {
    padding: 1rem 0.85rem;
}

.table thead {
    background: #f4f6fb;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #637296;
    font-size: 0.75rem;
}

.table-hover > tbody > tr:hover {
    background-color: rgba(79, 139, 255, 0.06);
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
}

.status-badge.success {
    background: rgba(55, 214, 102, 0.14);
    color: #178a41;
}

.status-badge.warning {
    background: rgba(255, 193, 58, 0.18);
    color: #9a6400;
}

.status-badge.danger {
    background: rgba(255, 99, 132, 0.15);
    color: #b12828;
}

.code-chip {
    font-family: 'Space Grotesk', 'SFMono-Regular', Consolas, monospace;
    background: #0f172a;
    color: #e8f1ff;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
}

.comment-text {
    color: #495c80;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error.";
}
