:root {
    --sistema-bg: #eef4ff;
    --sistema-bg-2: #f8fbff;
    --sistema-card: rgba(255, 255, 255, 0.92);
    --sistema-card-solid: #ffffff;
    --sistema-text: #172033;
    --sistema-muted: #6b7280;
    --sistema-primary: #2563eb;
    --sistema-primary-2: #4f46e5;
    --sistema-success: #16a34a;
    --sistema-warning: #d97706;
    --sistema-danger: #dc2626;
    --sistema-info: #0891b2;
    --sistema-dark: #111827;
    --sistema-border: rgba(226, 232, 240, 0.85);
    --sistema-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    --sistema-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
    --sistema-radius: 22px;
}

html,
body {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--sistema-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.10), transparent 30%),
        linear-gradient(135deg, var(--sistema-bg) 0%, var(--sistema-bg-2) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--sistema-primary);
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

.card {
    border-radius: 1rem;
}

.form-control,
.form-select,
.btn {
    border-radius: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid #dbe4f0;
    min-height: 46px;
    background: #fff;
    color: var(--sistema-text);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.btn {
    font-weight: 600;
    transition: all 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sistema-primary), var(--sistema-primary-2));
    border: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.btn-success {
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.14);
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--sistema-primary);
}

.btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--sistema-primary);
    border-color: rgba(37, 99, 235, 0.35);
}

.btn-light {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.shadow-soft {
    box-shadow: var(--sistema-shadow);
}

.form-label {
    font-size: 12px;
    color: var(--sistema-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
}

.swal2-popup {
    border-radius: 22px !important;
}

.swal2-title {
    color: var(--sistema-text) !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 94px;
    }
}