.testkolik-quiz-container {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.quiz-header {
    margin-bottom: 20px;
    background: #fff;
}

.quiz-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.exit-to-unite-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
}

.exit-to-unite-btn:hover {
    background: #4338ca;
    color: white;
    transform: translateY(-1px);
}

.exit-to-unite-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.quiz-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.quiz-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.quiz-test-id {
    margin: 0;
    color: #2271b1;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.tk-quiz-livebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 0 0 16px;
}

.tk-quiz-modes {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.tk-quiz-mode {
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.tk-quiz-mode.is-active {
    background: #0f172a;
    color: #fff;
}

.tk-quiz-live {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.tk-quiz-live.is-on {
    display: inline-flex;
}

.tk-quiz-live__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    flex: 0 0 auto;
}

.question-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tk-q-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.tk-q-badge.is-wrong {
    background: #dc2626;
}

.tk-q-badge.is-correct {
    background: #16a34a;
}

.tk-q-mark {
    margin-left: auto;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.tk-q-mark--bad {
    color: #dc2626;
}

.tk-q-mark--ok {
    color: #16a34a;
}

.question-item[data-revealed="1"] .answer-option {
    cursor: default;
}

.question-item[data-revealed="1"] .answer-option.is-picked-wrong {
    border-color: #2563eb;
    background: #fff;
}

.question-item[data-revealed="1"] .answer-option.is-picked-wrong:hover {
    border-color: #2563eb;
    background: #fff;
}

.tk-q-stats {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.tk-q-stats.is-on {
    display: flex;
}

.tk-q-stat {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.tk-q-stat__label {
    color: #334155;
    font-weight: 600;
}

.tk-q-stat__track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.tk-q-stat__bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
}

.tk-q-stat__bar--ok {
    background: #22c55e;
}

.tk-q-stat__bar--bad {
    background: #f43f5e;
}

.tk-q-stat__meta {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

.other-quizzes-section {
    margin: 8px 0 24px;
    padding: 4px 2px 0;
    background: transparent;
    border: 0;
}

.other-quizzes-section h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.other-quizzes-list {
    display: flex;
    flex-direction: column;
}

.other-quiz-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    color: #243044;
    box-shadow: none;
    transform: none;
}

.other-quiz-item:hover {
    color: #1d4ed8;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

.other-quiz-title {
    flex: 0 1 auto;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.other-quiz-leader {
    flex: 1 1 auto;
    min-width: 1.5rem;
    border-bottom: 2px dotted #c5ced9;
    transform: translateY(1px);
}

.other-quiz-count {
    flex: 0 0 auto;
    min-width: 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #334155;
}

@media (max-width: 768px) {
    .quiz-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .exit-to-unite-btn {
        flex: 1;
        justify-content: center;
    }
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #d63638;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
}

.quiz-timer.is-off {
    display: none;
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.quiz-left-column {
    background: #fff;
    min-width: 0;
}

.quiz-right-column {
    position: sticky;
    top: 20px;
}

.answer-sheet {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.answer-sheet-header {
    flex: 0 0 auto;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.answer-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.answer-sheet-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

.answer-sheet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.answer-sheet-item:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

.answer-sheet-item.active {
    background: #e7f3ff;
    border-color: #2271b1;
    border-width: 2px;
}

.answer-sheet-question-number {
    font-weight: bold;
    font-size: 13px;
    color: #333;
    flex-shrink: 0;
    min-width: 30px;
}

.answer-sheet-options {
    display: flex;
    gap: 3px;
    flex: 1;
    justify-content: flex-end;
}

.question-text p {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.question-text img,
.question-text video,
.question-text iframe,
.answer-text img,
.solution-text img {
    max-width: 100%;
    height: auto;
}

.question-text table,
.solution-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.answer-bubble {
    width: 26px;
    height: 26px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-bubble:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.answer-bubble.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.answer-bubble.correct {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
}



.answer-bubble.wrong {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}


.answer-bubble.empty {
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #666;
}

.answer-bubble.empty::after {
    content: '○';
    font-size: 12px;
}

.answer-sheet-item.correct-item {
    border-color: #00a32a;
    background: #f0f6f0;
}

.answer-sheet-item.wrong-item {
    border-color: #d63638;
    background: #fef0f0;
}

.answer-sheet-item.empty-item {
    border-color: #c3c4c7;
    background: #f6f7f7;
}

.answer-sheet-item.correct-item .answer-sheet-question-number::after {
    content: ' ✓';
    color: #00a32a;
    font-weight: bold;
}

.answer-sheet-item.wrong-item .answer-sheet-question-number::after {
    content: ' ✗';
    color: #d63638;
    font-weight: bold;
}

.answer-sheet-item.empty-item .answer-sheet-question-number::after {
    content: ' ○';
    color: #666;
}

.question-display-area {
    min-height: 400px;
}

.question-item {
    display: none;
}

.question-item.active {
    display: block;
}

.question-number {
    font-size: 18px;
    font-weight: bold;
    color: #2271b1;
    display: inline-block;
    padding: 5px 12px;
    background: #e7f3ff;
    border-radius: 4px;
}

.question-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    min-width: 0;
    max-width: 100%;
}

.answer-option:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-option input[type="radio"]:checked + .answer-letter {
    font-weight: bold;
    color: #2271b1;
}

.answer-option input[type="radio"]:checked ~ .answer-text {
    font-weight: 500;
}

.answer-letter {
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
    color: #333;
    min-width: 25px;
    flex-shrink: 0;
}

.answer-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover:not(:disabled) {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-actions {
    margin: 20px 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-submit-quiz,
.btn-show-solutions {
    padding: 12px 30px;
    font-size: 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.btn-submit-quiz:hover,
.btn-show-solutions:hover {
    background: #135e96;
}

.btn-show-solutions {
    background: #00a32a;
}

.btn-show-solutions:hover {
    background: #008a20;
}

.question-solution {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.solution-text {
    margin-top: 10px;
    line-height: 1.6;
}

.question-status {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.question-status.correct,
.question-status.wrong,
.question-status.empty {
    display: flex;
}

.question-status.correct {
    background: #f0f6f0;
    border: 2px solid #00a32a;
    color: #00a32a;
}

.question-status.wrong {
    background: #fef0f0;
    border: 2px solid #d63638;
    color: #d63638;
}

.question-status.empty {
    background: #f6f7f7;
    border: 2px solid #c3c4c7;
    color: #666;
}

.status-icon {
    font-size: 20px;
    font-weight: bold;
}

.question-item.show-all {
    display: block !important;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
    opacity: 1;
}

.question-item.show-all:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Test bitince form gizle, sonuç ekranını göster */
.quiz-completed #testkolik-quiz-form {
    display: none;
}

.quiz-completed #quiz-results {
    display: block;
}

/* Çözümleri gör modunda soruları göster */
.solutions-mode #quiz-results {
    display: none;
}

.solutions-mode #testkolik-quiz-form {
    display: block;
}

.solutions-mode .question-navigation {
    display: flex;
}

.solutions-mode .question-item {
    display: none;
}

.solutions-mode .question-item.active {
    display: block;
}

.solutions-mode .quiz-layout {
    grid-template-columns: 1fr 280px;
}

.quiz-review .quiz-left-column {
    display: flex;
    flex-direction: column;
}

.quiz-review #quiz-results,
.quiz-review #testkolik-quiz-form {
    display: block;
}

.quiz-review #quiz-results {
    order: -1;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.quiz-review .btn-show-solutions {
    display: none;
}

.answer-option.correct-option {
    background: #f0f6f0;
    border-color: #00a32a;
    border-width: 2px;
}

.answer-option.correct-option .answer-letter {
    color: #00a32a;
    font-weight: bold;
}

.answer-option.wrong-option {
    background: #fef0f0;
    border-color: #d63638;
    border-width: 2px;
}

.answer-option.wrong-option .answer-letter {
    color: #d63638;
    font-weight: bold;
}

.answer-option.correct-answer {
    background: #e7f3ff;
    border-color: #2271b1;
    border-width: 2px;
}

.answer-option.correct-answer .answer-letter::after {
    content: ' (Doğru Cevap)';
    color: #2271b1;
    font-size: 13px;
    font-weight: normal;
}

#quiz-results {
    display: none;
    margin-top: 40px;
    padding: 0;
    background: #fff;
}

.results-actions {
    margin-top: 20px;
    text-align: center;
}

.results-summary-card {
    background: #fff;
    color: #1a1a2e;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.celebration-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.celebration-message {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: #5c5c6b;
}

.results-scoreline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 20px;
}

.score-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #0066cc;
}

.score-label,
.rank-name {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.rank-name::before {
    content: "·";
    margin-right: 14px;
    color: #cbd5e1;
    font-weight: 400;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.stat-item {
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.stat-item .stat-value {
    display: block;
    margin-bottom: 4px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
}

.stat-item.stat-correct .stat-value {
    color: #15803d;
}

.stat-item.stat-wrong .stat-value {
    color: #b91c1c;
}

.stat-item.stat-empty .stat-value {
    color: #64748b;
}

.stat-item.stat-percentage .stat-value {
    color: #1d4ed8;
}

.stat-item .stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.results-questions-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .testkolik-quiz-container {
        padding: 16px 12px;
    }

    .quiz-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .exit-to-unite-btn {
        flex: 1;
        justify-content: center;
    }

    .question-text,
    .question-text p,
    .answer-text,
    .solution-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .results-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item.stat-percentage {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .quiz-layout,
    .solutions-mode .quiz-layout,
    .quiz-completed .quiz-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .quiz-right-column {
        position: static;
    }

    .answer-sheet-content {
        max-height: calc(100vh - 220px);
        overflow-y: auto;
    }
}

/* Test bitince cevap kağıdı masaüstünde görünür kalacak */
@media (min-width: 1025px) {
    .quiz-completed .quiz-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}
