
:root {
    --primary: #2563eb;
    --primary-hover: #1e40af;
    --secondary: #06b6d4;
    --success: #22c55e;
    --danger: #dc2626;
    --warning: #fa155dff;
    --light: #f9fafb;
    --dark: #0f172a;
}

.results-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.results-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.modal-header {
    padding: 1rem 1.5rem 0;
}

.modal-body {
    padding: 0 2.5rem 1.5rem;
}

.modal-footer {
    background: #2563eb;
    padding: 1rem 2.5rem 1.5rem;
}

.header {
    margin-bottom: 1.5rem;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.logo i {
    font-size: 1.8rem;
    color: white;
}

.modal-title {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

.form-label {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 3;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 12px 12px 45px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    width: 100%;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.student-info {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.student-info h5 {
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.usage-info {
    background: rgba(245, 158, 11, 0.1);
    color: var(--dark);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.85rem;
}

.countdown {
    background: rgba(245, 158, 11, 0.1);
    color: black;
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-align: center;
}

.countdown-timer {
    font-weight: bold;
    color: var(--primary);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 0 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}