.exam-display-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: var(--medium-width);
    margin: 0 auto;
    padding: 20px;
}

.exam-display {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.exam-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.exam-display-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exam-timer-section {
    text-align: center;
    margin-bottom: 30px;
}

.timer-label {
    font-size: 30px;
    color: #a5b4fc;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 100px;
}

.timer-value {
    font-size: 200px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    line-height: 1;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.timer-sep {
    font-size: 80px;
    font-weight: 800;
    color: #818cf8;
    position: relative;
    top: -20px;
    line-height: 2;
}

.timer-end {
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.timer-end .timer-value {
    color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
}

.exam-info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.info-label {
    font-size: 16px;
    color: #a5b4fc;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.info-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 10px;
}

.exam-config {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.exam-config .config-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-config .config-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.exam-config .config-input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 50px;
}

.exam-config .config-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.exam-config .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.exam-config .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.exam-config .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 28px;
}

.exam-config .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.exam-config input:checked + .slider {
    background-color: #8b5cf6;
}

.exam-config input:checked + .slider:before {
    transform: translateX(22px);
}

.exam-config .config-apply-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.exam-config .config-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

@media (max-width: 900px) {
    .exam-display-page {
        flex-direction: column;
    }

    .exam-info-grid {
        grid-template-columns: 1fr;
    }

    .timer-item {
        padding: 16px 20px;
        min-width: 80px;
    }

    .timer-value {
        font-size: 48px;
    }

    .info-value {
        font-size: 22px;
    }
}

.exam-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.exam-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 48px 40px;
    min-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.exam-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.exam-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.exam-modal-message {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 32px;
    white-space: pre-line;
}

.exam-modal-btn {
    padding: 14px 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}