/**
 * Eğitim Merkezi / Sınav Sistemi CSS
 * Vergibulustayi.com
 * 
 * Modern, kullanıcı dostu ve mobil uyumlu tasarım
 */

/* =====================================================
   GENEL KONTEYNER
   ===================================================== */
.exam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.exam-hero {
    background: linear-gradient(135deg, #0e3f83 0%, #1a5fa8 50%, #2575c9 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.exam-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

.exam-hero-content {
    position: relative;
    z-index: 1;
}

.exam-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.exam-hero h1 i {
    margin-right: 10px;
}

.exam-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.user-stats-mini {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.user-stats-mini .stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 15px 25px;
    border-radius: 12px;
}

.user-stats-mini .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.user-stats-mini .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: #0e3f83;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* =====================================================
   SECTION YAPISI
   ===================================================== */
.exam-section {
    margin-bottom: 35px;
}

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

.section-header h2 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.section-header h2 i {
    color: #0e3f83;
    margin-right: 8px;
}

.btn-section-link {
    color: #0e3f83;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-section-link:hover {
    text-decoration: underline;
}

/* =====================================================
   KATEGORİ GRID
   ===================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--card-color, #0e3f83);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--card-color, #0e3f83);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* =====================================================
   SINAV KARTLARI
   ===================================================== */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.exam-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.exam-card-header {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
}

.exam-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.exam-meta i {
    margin-right: 4px;
}

.exam-card-body {
    padding: 20px;
    flex-grow: 1;
}

.exam-card-body h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.exam-card-body p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.exam-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pass-score {
    font-size: 0.85rem;
    color: #28a745;
}

.pass-score i {
    margin-right: 4px;
}

.btn-exam {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0e3f83;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-exam:hover {
    background: #1a5fa8;
    color: white;
}

.no-exams {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-exams i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* =====================================================
   SON ÇÖZÜLENLER
   ===================================================== */
.recent-exams {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.recent-exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.recent-exam-item:last-child {
    border-bottom: none;
}

.recent-exam-item:hover {
    background: #f8f9fa;
}

.recent-exam-info h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

.exam-date {
    font-size: 0.85rem;
    color: #999;
}

.recent-exam-result {
    text-align: right;
}

.recent-exam-result .score {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.recent-exam-result .score.success {
    color: #28a745;
}

.recent-exam-result .score.fail {
    color: #dc3545;
}

.recent-exam-result .detail {
    font-size: 0.8rem;
    color: #999;
}

.status-pending {
    color: #ffc107;
    font-weight: 500;
}

.status-expired {
    color: #dc3545;
    font-weight: 500;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.exam-sidebar {
    width: 280px !important;
    min-width: 280px !important;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e3f83;
}

.sidebar-card h3 i {
    margin-right: 8px;
    color: #0e3f83;
}

.info-list, .tips-list, .warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li, .tips-list li, .warning-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-list li i, .tips-list li i {
    color: #28a745;
    margin-top: 3px;
}

.warning-list li {
    color: #856404;
}

.admin-card {
    background: linear-gradient(135deg, #0e3f83, #1a5fa8);
    color: white;
}

.admin-card h3 {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.admin-link {
    display: block;
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.admin-link i {
    margin-right: 8px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.exam-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.exam-breadcrumb a {
    color: #0e3f83;
    text-decoration: none;
}

.exam-breadcrumb a:hover {
    text-decoration: underline;
}

.exam-breadcrumb i.fa-chevron-right {
    font-size: 0.7rem;
    color: #999;
}

.exam-breadcrumb span {
    color: #666;
}

/* =====================================================
   SINAV DETAY SAYFASI
   ===================================================== */
.exam-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.exam-detail-header {
    background: linear-gradient(135deg, #0e3f83, #1a5fa8);
    padding: 30px;
    color: white;
}

.exam-detail-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.exam-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.exam-description {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.exam-description p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 25px 30px;
}

.exam-info-grid .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.exam-info-grid .info-item i {
    width: 45px;
    height: 45px;
    background: #e8f0fe;
    color: #0e3f83;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.exam-info-grid .label {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.exam-info-grid .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.exam-stats-section {
    padding: 25px 30px;
    border-top: 1px solid #eee;
}

.exam-stats-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0e3f83;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: #666;
}

.exam-action-section {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.login-required, .continue-exam {
    padding: 30px;
    background: #fff3cd;
    border-radius: 12px;
    display: inline-block;
}

.login-required i, .continue-exam i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.continue-exam {
    background: #d4edda;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #28a745;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
}

.already-completed {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* =====================================================
   LEADERBOARD
   ===================================================== */
.leaderboard-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.leaderboard-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.leaderboard-table {
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.leaderboard-row.top-1 {
    background: linear-gradient(135deg, #ffeaa7, #fff3cd);
}

.leaderboard-row.top-2 {
    background: linear-gradient(135deg, #dfe6e9, #f0f0f0);
}

.leaderboard-row.top-3 {
    background: linear-gradient(135deg, #e8c29a, #f5e6d3);
}

.leaderboard-row .rank {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.leaderboard-row .name {
    flex-grow: 1;
    margin-left: 10px;
}

.leaderboard-row .score {
    font-weight: 700;
    color: #0e3f83;
    margin-right: 15px;
}

.leaderboard-row .details {
    font-size: 0.85rem;
    color: #666;
}

/* =====================================================
   SINAV ÇÖZME SAYFASI
   ===================================================== */
.exam-solve-container {
    max-width: 100%;
    padding: 0;
}

.exam-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 15px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.exam-title-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.exam-timer-section .timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #0e3f83;
    color: white;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
}

.timer.warning {
    background: #ffc107;
    color: #333;
    animation: pulse 1s infinite;
}

.timer.critical {
    background: #dc3545;
    animation: pulse 0.5s infinite;
}

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

.btn-finish {
    padding: 10px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-finish:hover {
    background: #c82333;
}

.exam-main-content {
    display: flex;
    min-height: calc(100vh - 140px);
}

/* Soru navigasyonu */
.question-nav-sidebar {
    width: 200px;
    min-width: 200px;
    background: white;
    padding: 20px;
    border-right: 1px solid #eee;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.question-nav-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.nav-item {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-item:hover {
    border-color: #0e3f83;
}

.nav-item.answered {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.nav-item.current {
    border-color: #0e3f83;
    background: #0e3f83;
    color: white;
}

.nav-legend {
    font-size: 0.75rem;
    color: #666;
}

.nav-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.legend-box.current {
    background: #0e3f83;
    border-color: #0e3f83;
}

.legend-box.answered {
    background: #28a745;
    border-color: #28a745;
}

/* Soru alanı */
.question-area {
    flex-grow: 1;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.question-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.question-header {
    background: #f8f9fa;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-number {
    font-weight: 600;
    color: #0e3f83;
}

.question-points {
    background: #0e3f83;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.question-content {
    padding: 30px;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.question-image {
    margin: 20px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Seçenekler */
.options-container {
    padding: 0 30px 20px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #e8f0fe;
    border-color: #0e3f83;
}

.option-item.selected {
    background: #0e3f83;
    border-color: #0e3f83;
    color: white;
}

.option-item input {
    display: none;
}

.option-letter {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    color: #0e3f83;
}

.option-item.selected .option-letter {
    background: white;
    color: #0e3f83;
}

.option-text {
    flex-grow: 1;
    line-height: 1.6;
    padding-top: 5px;
}

/* Soru footer */
.question-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-nav {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover:not(:disabled) {
    background: #5a6268;
}

.btn-next {
    background: #0e3f83;
    color: white;
}

.btn-next:hover {
    background: #1a5fa8;
}

.btn-clear {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}

.btn-clear:hover {
    background: #dc3545;
    color: white;
}

.btn-finish-last {
    background: #28a745;
    color: white;
}

.btn-finish-last:hover {
    background: #218838;
}

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

/* =====================================================
   SONUÇ SAYFASI
   ===================================================== */
.result-card {
    background: white;
    border-radius: 16px;
    text-align: center;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.result-card.success {
    border-top: 5px solid #28a745;
}

.result-card.fail {
    border-top: 5px solid #dc3545;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-card.success .result-icon {
    color: #28a745;
}

.result-card.fail .result-icon {
    color: #dc3545;
}

.result-score {
    margin-bottom: 30px;
}

.score-value {
    display: block;
    font-size: 4rem;
    font-weight: 700;
}

.result-card.success .score-value {
    color: #28a745;
}

.result-card.fail .score-value {
    color: #dc3545;
}

.score-label {
    display: block;
    font-size: 1.3rem;
    color: #666;
    margin-top: 10px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.result-stats .stat-item {
    text-align: center;
    padding: 20px 30px;
    border-radius: 12px;
}

.result-stats .stat-item.correct {
    background: #d4edda;
}

.result-stats .stat-item.wrong {
    background: #f8d7da;
}

.result-stats .stat-item.empty {
    background: #fff3cd;
}

.result-stats .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.result-stats .stat-item.correct .stat-value {
    color: #28a745;
}

.result-stats .stat-item.wrong .stat-value {
    color: #dc3545;
}

.result-stats .stat-item.empty .stat-value {
    color: #ffc107;
}

.result-stats .stat-label {
    font-size: 1rem;
    color: #666;
}

.result-details {
    margin-bottom: 25px;
    color: #666;
}

.result-details p {
    margin: 8px 0;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-result {
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-retry {
    background: #0e3f83;
    color: white;
}

.btn-retry:hover {
    background: #1a5fa8;
    color: white;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    color: white;
}

/* Cevap anahtarı */
.answers-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.answer-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #0e3f83;
}

.filter-btn.active {
    background: #0e3f83;
    border-color: #0e3f83;
    color: white;
}

.answers-list {
    margin-top: 20px;
}

.answer-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s ease;
}

.answer-header:hover {
    background: #eee;
}

.answer-number {
    font-weight: 600;
    color: #333;
}

.answer-status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.answer-status-badge.correct {
    background: #d4edda;
    color: #28a745;
}

.answer-status-badge.wrong {
    background: #f8d7da;
    color: #dc3545;
}

.answer-status-badge.empty {
    background: #fff3cd;
    color: #856404;
}

.answer-toggle {
    color: #666;
}

.answer-body {
    padding: 20px;
    border-top: 1px solid #eee;
}

.question-text-result {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.question-image-result {
    margin: 15px 0;
}

.question-image-result img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.options-result {
    margin: 15px 0;
}

.option-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
}

.option-result-item.correct-option {
    background: #d4edda;
    border-color: #28a745;
}

.option-result-item.wrong-option {
    background: #f8d7da;
    border-color: #dc3545;
}

.option-result-item .option-letter {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

.correct-icon {
    color: #28a745;
    margin-left: auto;
}

.wrong-icon {
    color: #dc3545;
    margin-left: auto;
}

.answer-info {
    margin: 15px 0;
    padding: 15px;
    background: #e8f0fe;
    border-radius: 8px;
}

.answer-info p {
    margin: 5px 0;
}

.explanation-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
}

.explanation-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.explanation-box p {
    margin: 0;
    color: #856404;
}

/* =====================================================
   ADMİN SAYFALAR
   ===================================================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.admin-header .subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-add, .btn-import {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-add {
    background: #28a745;
    color: white;
}

.btn-add:hover {
    background: #218838;
    color: white;
}

.btn-import {
    background: #17a2b8;
    color: white;
}

.btn-import:hover {
    background: #138496;
    color: white;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border-radius: 25px;
    text-decoration: none;
}

.btn-back:hover {
    background: #5a6268;
    color: white;
}

/* Admin tablo */
.admin-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #28a745;
}

.badge-secondary {
    background: #e9ecef;
    color: #6c757d;
}

.badge-danger {
    background: #f8d7da;
    color: #dc3545;
}

.badge-info {
    background: #d1ecf1;
    color: #17a2b8;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-questions {
    background: #17a2b8;
    color: white;
}

.btn-stats {
    background: #6f42c1;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-action:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Admin form */
.admin-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.1rem;
    color: #0e3f83;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0e3f83;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-row.checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
}

.btn-submit {
    padding: 14px 30px;
    background: #0e3f83;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #1a5fa8;
}

.btn-cancel {
    padding: 14px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #5a6268;
    color: white;
}

/* Soru admin kartları */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-admin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.question-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
}

.question-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-q, .btn-delete-q {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-q {
    background: #ffc107;
    color: #333;
}

.btn-delete-q {
    background: #dc3545;
    color: white;
}

.question-admin-body {
    padding: 20px;
}

.question-admin-body .question-text {
    margin-bottom: 15px;
}

.question-thumb {
    max-width: 150px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.options-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.options-preview span {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 5px;
}

.options-preview span.correct {
    background: #d4edda;
    color: #28a745;
    font-weight: 600;
}

.correct-answer {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.no-questions {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #999;
}

.no-questions i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.copy {
    background: #6c757d;
}

/* Leaderboard mini */
.leaderboard-mini-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.leaderboard-mini-item:last-child {
    border-bottom: none;
}

.leaderboard-mini-item.current-user {
    background: #e8f0fe;
    margin: 0 -20px;
    padding: 10px 20px;
}

.leaderboard-mini-item .rank {
    width: 25px;
    font-weight: 600;
    color: #666;
}

.leaderboard-mini-item .name {
    flex-grow: 1;
    font-size: 0.9rem;
}

.leaderboard-mini-item .score {
    font-weight: 600;
    color: #0e3f83;
}

/* =====================================================
   MOBİL UYUMLULUK
   ===================================================== */
@media (max-width: 992px) {
    .exam-sidebar {
        display: none !important;
    }
    
    .exam-main-content {
        flex-direction: column;
    }
    
    .question-nav-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .question-nav-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 768px) {
    .exam-hero {
        padding: 25px;
    }
    
    .exam-hero h1 {
        font-size: 1.6rem;
    }
    
    .user-stats-mini {
        gap: 15px;
    }
    
    .user-stats-mini .stat-item {
        padding: 10px 15px;
    }
    
    .user-stats-mini .stat-value {
        font-size: 1.4rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exam-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-detail-header {
        padding: 20px;
    }
    
    .exam-detail-header h1 {
        font-size: 1.4rem;
    }
    
    .exam-info-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .exam-topbar {
        padding: 10px 15px;
    }
    
    .exam-title-section h2 {
        font-size: 1rem;
    }
    
    .timer {
        font-size: 1.1rem;
        padding: 8px 15px;
    }
    
    .question-nav-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .question-area {
        padding: 15px;
    }
    
    .question-content {
        padding: 20px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .options-container {
        padding: 0 15px 15px;
    }
    
    .option-item {
        padding: 14px 12px;
    }
    
    .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .question-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .result-score .score-value {
        font-size: 3rem;
    }
    
    .result-stats {
        gap: 15px;
    }
    
    .result-stats .stat-item {
        padding: 15px 20px;
    }
    
    .result-stats .stat-value {
        font-size: 2rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row.checkboxes {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .exam-container {
        padding: 10px;
    }
    
    .exam-hero {
        padding: 20px;
    }
    
    .exam-hero h1 {
        font-size: 1.3rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .question-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .nav-item {
        font-size: 0.8rem;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .recent-exam-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recent-exam-result {
        text-align: left;
    }
}

/* ===========================================
   İTİRAZ BUTONU STİLLERİ
=========================================== */
.footer-center-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-objection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-objection:hover {
    background: linear-gradient(135deg, #ffca2c 0%, #ffab00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-objection i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-center-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-objection {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .btn-objection .btn-text-desktop {
        display: none;
    }
}
