/* ===================================
   KPSS EXAM VIEW STYLES
   =================================== */

.kpss-exam-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== START SCREEN ===== */
.exam-header-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(101, 67, 33, 0.3) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 2rem;
}

.exam-header-card .exam-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.exam-header-card .exam-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.exam-header-card .exam-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.exam-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.info-card .info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-card .info-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-card .info-value {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.exam-rules {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

.exam-rules h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.exam-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-rules li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 1.5rem;
}

.exam-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.start-exam-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-exam-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.start-exam-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== TIMER BAR ===== */
.kpss-timer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.kpss-timer-bar.warning {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.kpss-timer-bar.paused {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.timer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-text {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    color: white;
}

.timer-text.warning {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pause-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question-counter {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.answered-counter {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.timer-right {
    display: flex;
    gap: 0.75rem;
}

.finish-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.finish-btn:hover {
    background: #dc2626;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== PAUSE OVERLAY ===== */
.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pause-modal {
    text-align: center;
    padding: 3rem;
}

.pause-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.pause-modal h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.pause-modal p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.resume-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* ===== QUESTION GRID ===== */
.question-grid {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.grid-toggle {
    font-size: 0.8rem;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 4px;
    padding: 1rem;
}

@media (max-width: 900px) {
    .grid-items {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-items {
        grid-template-columns: repeat(10, 1fr);
    }
}

.grid-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.7);
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.grid-item.current {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.grid-item.answered {
    background: #22c55e;
    color: white;
}

.grid-item.flagged {
    border: 2px solid #ef4444;
}

.grid-item.answered.flagged {
    background: linear-gradient(135deg, #22c55e 50%, #ef4444 50%);
}

/* ===== QUESTION CARD ===== */
.kpss-question-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.question-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.question-subject {
    background: rgba(139, 69, 19, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.flag-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.flag-btn:hover,
.flag-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    margin-bottom: 1.5rem;
}

.question-text strong {
    color: var(--accent);
}

/* ===== OPTIONS ===== */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kpss-option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kpss-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.kpss-option-item.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.option-letter {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    color: var(--accent);
}

.kpss-option-item.selected .option-letter {
    background: var(--primary);
    color: white;
}

.option-text {
    flex: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== NAVIGATION ===== */
.kpss-question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn-next {
    background: var(--primary);
    border-color: var(--primary);
}

.nav-btn-next:hover:not(:disabled) {
    background: #4f46e5;
}

.nav-quick {
    display: flex;
    gap: 0.5rem;
}

.quick-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.quick-btn:disabled {
    opacity: 0.3;
}

/* ===== RESULTS ===== */
.kpss-exam-results {
    text-align: center;
}

.results-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(101, 67, 33, 0.3) 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.results-icon.excellent {
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.results-header h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.results-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid transparent;
}

.result-card.correct {
    border-color: #22c55e;
}

.result-card.wrong {
    border-color: #ef4444;
}

.result-card.empty {
    border-color: #6b7280;
}

.result-card.net {
    border-color: var(--accent);
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.result-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.results-xp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.xp-icon {
    font-size: 1.5rem;
}

/* ===== SUBJECT BREAKDOWN ===== */
.subject-breakdown {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.subject-breakdown h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.breakdown-subject {
    font-weight: 600;
    color: white;
}

.breakdown-percent {
    font-weight: 700;
}

.breakdown-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-details {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.breakdown-details .correct {
    color: #22c55e;
}

.breakdown-details .wrong {
    color: #ef4444;
}

.breakdown-details .empty {
    color: #6b7280;
}

/* ===== AI ANALYSIS ===== */
.ai-analysis-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.ai-analysis-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.analysis-overview {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.weak-subjects h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.weak-subject-card {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.weak-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.weak-name {
    font-weight: 700;
    color: white;
}

.weak-reason {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.quick-notes {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.quick-notes h5 {
    color: #22c55e;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.quick-notes ul {
    margin: 0;
    padding-left: 1.25rem;
}

.quick-notes li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.recommendations h4 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.recommendations ul {
    margin: 0;
    padding-left: 1.25rem;
}

.recommendations li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.motivation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

.motivation p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESULTS ACTIONS ===== */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.retry-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #4f46e5;
}

/* ===== REVIEW SECTION ===== */
.review-section {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.review-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.review-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.review-item.review-correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.review-item.review-wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.review-item.review-empty {
    background: rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.review-num {
    font-weight: 700;
    color: var(--accent);
}

.review-subject {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-status {
    margin-left: auto;
    font-size: 1.25rem;
}

.review-question {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.review-answers {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.review-explanation {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== LOADING ===== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .kpss-timer-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timer-left,
    .timer-center,
    .timer-right {
        width: 100%;
        justify-content: center;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpss-question-card {
        padding: 1.25rem;
    }

    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.recommendations h4 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.recommendations ul {
    margin: 0;
    padding-left: 1.25rem;
}

.recommendations li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.motivation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

.motivation p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESULTS ACTIONS ===== */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.retry-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #4f46e5;
}

/* ===== REVIEW SECTION ===== */
.review-section {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.review-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.review-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.review-item.review-correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.review-item.review-wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.review-item.review-empty {
    background: rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.review-num {
    font-weight: 700;
    color: var(--accent);
}

.review-subject {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.review-status {
    margin-left: auto;
    font-size: 1.25rem;
}

.review-question {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.review-answers {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.review-explanation {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== LOADING ===== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .kpss-timer-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timer-left,
    .timer-center,
    .timer-right {
        width: 100%;
        justify-content: center;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpss-question-card {
        padding: 1.25rem;
    }

    .kpss-question-nav {
        flex-wrap: wrap;
    }

    .nav-quick {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* ===== CUSTOM CONFIRMATION MODAL ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-modal {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.confirm-modal-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.confirm-modal-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 500;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.confirm-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.confirm-modal-btn.confirm.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.confirm-modal-btn.confirm.success:hover {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.confirm-modal-btn.confirm.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.confirm-modal-btn.confirm.danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Clear button style */
.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

/* ===== LOADING ===== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .kpss-timer-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .timer-left,
    .timer-center,
    .timer-right {
        width: 100%;
        justify-content: center;
    }

    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpss-question-card {
        padding: 1.25rem;
    }

    .kpss-question-nav {
        flex-wrap: wrap;
    }

    .nav-quick {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* ===== CUSTOM CONFIRMATION MODAL ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-modal {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.confirm-modal-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.confirm-modal-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 500;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.confirm-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.confirm-modal-btn.confirm.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.confirm-modal-btn.confirm.success:hover {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.confirm-modal-btn.confirm.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.confirm-modal-btn.confirm.danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Clear button style */
.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Results answered text */
.results-answered {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* ===== REVIEW OPTIONS ===== */
.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.review-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.review-option.is-correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

.review-option.is-wrong-answer {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
}

.review-option-letter {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.review-option.is-correct .review-option-letter {
    background: #22c55e;
    color: white;
}

.review-option.is-wrong-answer .review-option-letter {
    background: #ef4444;
    color: white;
}

.review-option-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.review-badge.correct-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.review-badge.wrong-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.review-badge.your-correct-badge {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.review-summary {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.review-summary .your-answer {
    color: rgba(255, 255, 255, 0.7);
}

.review-summary .correct-answer {
    color: #22c55e;
}