/* TOPIK 모의고사 시험 응시 페이지 CSS */

body {
    font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
    background-color: #f8f9fa;
}

/* 상단 네비게이션 스타일 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link i {
        font-size: 0.8rem;
    }
}

.exam-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.exam-status {
    text-align: center;
}

.exam-status .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 재시험 모드 스타일 */
.retake-mode .timer-display {
    background: rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
}

.retake-mode .question-card {
    border-left: 5px solid #28a745;
}

/* 시험 종료 상태 스타일 */
.exam-expired .timer-display {
    background: rgba(255, 193, 7, 0.3);
    border: 2px solid #ffc107;
}

.exam-expired .question-card {
    border-left: 5px solid #ffc107;
}

.question-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.question-header {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
}

.question-content {
    padding: 2rem;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.choices-container {
    margin-top: 1.5rem;
}

.choice-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateX(5px);
}

.choice-item.selected {
    background: #e8f5e9;
    border-color: #4caf50;
    box-shadow: 0 2px 10px rgba(76,175,80,0.3);
}

.choice-radio {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.audio-player {
    background: linear-gradient(135deg, #ff7675 0%, #e17055 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s ease;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 0;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.answer-sheet-panel {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.question-cell {
    aspect-ratio: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.question-cell.current {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

.question-cell.answered {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

.question-cell.marked {
    background: #ff9800;
    color: white;
    border-color: #f57c00;
}

.writing-textarea {
    width: 100%;
    min-height: 200px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.writing-textarea:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(33,150,243,0.25);
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .question-content {
        padding: 1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timer-display {
        font-size: 1.2rem;
    }
}
