:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.question-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.option-label {
    display: block;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.option-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.timer {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.timer.warning {
    background-color: #fff3cd;
    border: 2px solid var(--warning-color);
}

.timer.danger {
    background-color: #f8d7da;
    border: 2px solid var(--danger-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .timer {
        position: static;
        margin-bottom: 20px;
    }
}

/* Admin navbar hover effect */
.navbar-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-dark .nav-link {
    padding: 8px 15px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.navbar-dark .nav-link.text-white {
    opacity: 0.95;
}

.navbar-dark .nav-link.text-white:hover {
    opacity: 1;
}
