:root {
    --bg: #121212;
    --card: #1e1e1e;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --primary-start: #3b82f6;
    --primary-end: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0d1016;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar, .navbar-dark {
    background: linear-gradient(90deg, #121a34 0%, #0a0f1f 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.45rem;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.nav-link {
    color: rgba(227, 242, 253, 0.9) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff !important;
}

.container,
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}

.card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.question-card {
    background-color: #1d1f26;
    border: 1px solid #2f3340;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.option-card {
    border: 1px solid #2c2f3b;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    padding: 0.72rem;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    background: #21242f;
}

.option-card:hover {
    transform: translateY(-1px);
    background: #262a35;
    border-color: #3b6fd7;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
    border: none;
    color: #fff;
    padding: 0.78rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
    border-radius: 10px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.13);
}

.login-card {
    background: linear-gradient(180deg, #1f1f22, #18181b);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.login-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.login-icon i {
    color: #ffffff;
    font-size: 34px !important;
}

.brand-gold {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.4px;
    color: #fbbf24 !important;
    margin-bottom: 10px;
}

.login-card input,
.login-card .form-control {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    height: 54px;
    padding: 12px 16px;
    font-size: 16px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.login-card input::placeholder,
.login-card .form-control::placeholder {
    color: #64748b !important;
}

.login-card input:focus,
.login-card .form-control:focus {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18) !important;
    outline: none !important;
}

.login-card label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.brand {
    color: inherit !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.login-icon i {
    color: #ffffff;
    font-size: 38px !important;
    line-height: 1;
}

.brand-gold {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #fbbf24 !important;
    margin-bottom: 6px;
}

.brand {
    color: inherit !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

input {
    border-radius: 10px !important;
    border: 1px solid #2a2a2a !important;
    background: #121212 !important;
    color: #e0e0e0 !important;
}

button {
    border-radius: 10px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-end);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background: #1f2231;
    color: #f5f7ff;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.navbar, .navbar-dark {
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
    box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: #38bdf8 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #38bdf8 !important;
}

.container,
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}

.card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #1f6fe3;
    border-color: #1f6fe3;
}

.btn-secondary {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #3a3a3a;
    border-color: #555;
}

.form-control,
.form-select {
    background-color: #171717;
    border: 1px solid var(--border);
    color: var(--text);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.card-light {
    background: var(--card);
    border: 1px solid var(--border);
}

.question-card {
    border-radius: 14px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.option-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    transition: transform 0.2s, background 0.2s;
    background: #232323;
}

.option-card:hover {
    transform: translateY(-2px);
    background: #2b2b2b;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.option-card:has(input[type="radio"]:checked) {
    background: #1a3a5c;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    background: transparent !important;
    position: relative;
    cursor: pointer;
    transform: scale(1.1);
}

input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
}

.badge-nuevo {
    background-color: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    animation: parpadeo 1s infinite;
}

.badge-rendido {
    background-color: #3b82f6;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge-finalizado {
    background-color: #374151;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

@keyframes parpadeo {
    0%   { opacity: 1; }
    50%  { opacity: 0.2; }
    100% { opacity: 1; }
}

.login-link-text {
    text-align: center;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.login-link {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: #fde68a;
    text-decoration: underline;
}

.register-link-text {
    text-align: center;
    margin-top: 18px;
    color: #cbd5e1 !important;
    font-size: 14px;
}

.register-link {
    color: #fbbf24 !important;
    font-weight: 600;
    text-decoration: none;
}

.register-link:hover {
    color: #fde68a !important;
    text-decoration: underline;
}

.text-hint {
    color: #9ca3af;
    font-size: 0.85rem;
}

.hint-text {
    color: #60a5fa !important;
    font-size: 0.85rem;
    opacity: 1 !important;
}

.login-card label {
    color: #e5e7eb !important;
}