:root {
    --upn-primary: #0d6efd;
    --upn-secondary: #6c757d;
    --upn-success: #198754;
    --upn-danger: #dc3545;
    --upn-warning: #ffc107;
    --upn-light: #f8f9fa;
    --upn-dark: #212529;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Navbar customization */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Exam specific styles */
.exam-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-card {
    border-left: 4px solid var(--upn-primary);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Timer styles */
.exam-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--upn-dark);
}

/* Progress bar */
.progress {
    height: 0.5rem;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exam-container {
        padding: 1rem;
    }
    
    .navbar-brand span {
        display: none;
    }
}

/* Form validation */
.error {
    color: var(--upn-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: var(--upn-danger);
}

.is-valid {
    border-color: var(--upn-success);
}

#preguntasList {
    max-height: 300px;
    overflow-y: auto;
}

.list-group-item.active {
    font-weight: bold;
}

.list-group-item-success {
    background-color: #d4edda;
}

#prevGroup, #nextGroup {
    width: 40px;
}
.bg-upn-blue {
    background-color: #0056b3; /* Azul UPN */
}

.bg-upn-dark-blue {
    background-color: #003366; /* Azul oscuro UPN */
}