/* =========================================
   1. TEMEL DEĞİŞKENLER VE AYARLAR
   ========================================= */
:root {
    /* Modern Renk Paleti - Slate & Indigo */
    --primary-color: #4f46e5;       /* Ana Renk (Indigo) */
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    --secondary-color: #64748b;     /* İkincil Metin (Slate 500) */
    --text-dark: #1e293b;           /* Ana Metin (Slate 800) */
    --text-body: #334155;           /* Gövde Metni */
    
    --bg-body: #f1f5f9;             /* Sayfa Arka Planı */
    --bg-card: #ffffff;             /* Kart Arka Planı */
    
    --success-color: #10b981;       /* Başarı (Emerald) */
    --success-bg: #d1fae5;
    
    --danger-color: #ef4444;        /* Hata/Yanlış (Red) */
    --danger-bg: #fee2e2;
    
    --border-radius: 16px;          /* Genel Yuvarlaklık */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
}

/* Linklerin varsayılan alt çizgisini kaldır */
a { text-decoration: none; }

/* =========================================
   2. HEADER (BAŞLIK) ALANI
   ========================================= */
.rapor-header {
    background-color: var(--bg-card);
    margin: -.5rem 0 2rem 0;
    box-shadow: var(--header-shadow);
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
}

/* Başlık içindeki H2 düzenlemesi (Butonları düzgün hizalamak için) */
.rapor-header h2 {
    color: var(--text-dark);
    font-weight: 800;
    margin-top: 3rem;
    display: flex;
    flex-direction: column; /* Mobilde alt alta, PC'de ayarlanabilir */
    align-items: center;
    gap: 15px;
    font-size: 2rem;
}

.rapor-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-top: 0;
}

/* --- Butonlar (Sorular & Web Sitesi) --- */
.cikti_link_Sorular, 
.cikti_link_webpage {
	position:absolute;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
    font-weight: 500;
    font-size: 0.9rem;
	text-decoration:underline;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
	width:180px;
}

/* "SORULAR" Butonu - Öne Çıkan */
.cikti_link_Sorular {
	left:0;
    border-radius: 0 0 30px 0;
}


.cikti_link_webpage {
    right:0;
    border-radius: 0 0 0 30px;
}

.cikti_link_webpage:hover {
   transition: transform 0.2s ease, box-shadow 0.2s ease;       
}
.cikti_link_Sorular:hover {
   transition: transform 0.2s ease, box-shadow 0.2s ease;       
}

/* Öğrenci Bilgi Rozetleri */
.student-badge {
    background-color: #f8fafc;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin: 5px;
}
.student-badge i { color: var(--primary-color); }

/* =========================================
   3. KARTLAR VE GENEL YAPI
   ========================================= */
.custom-card, 
.question-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.custom-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* =========================================
   4. TABLOLAR
   ========================================= */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table { margin-bottom: 0; }

.table thead th {
    background-color: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
    color: var(--text-body);
    border-color: #f1f5f9;
}

/* Puan Rozeti */
.badge-score-danger {
    background-color: var(--danger-bg);
    color: var(--danger-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* =========================================
   5. SORU ANALİZİ VE ÇÖZÜMLER
   ========================================= */
.q-header {
    background-color: #f8fafc;
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-content { padding: 1.5rem; }

/* Başlıklar (İşlemlerin / Çözüm Adımları) */
.feedback-title, 
.solution-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: none !important; /* Eski arka planı iptal et */
    padding: 0 !important;
}

.feedback-title i, 
.solution-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 1rem;
}

/* İkon Renkleri */
.feedback-title i { background-color: var(--primary-light); color: var(--primary-color); }
.solution-title i { background-color: var(--success-bg); color: var(--success-color); }

/* Feedback Kutusu */
.feedback-body {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem !important;
    border-radius: 0 8px 8px 0;
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --- Çözüm Adımları (Timeline) --- */
.feedback-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Dikey Çizgi */
.feedback-content ul::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px; /* Noktanın ortasına hizala */
    width: 2px;
    background-color: #e2e8f0;
}

.step-main {
    position: relative;
    padding-left: 40px; /* İçerik boşluğu */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Adım Noktası */
.step-main::after {
    content: '';
    position: absolute;
    left: 4px; /* Çizgiyle hizala */
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.step-display {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* İç Liste (ul ul) */
.step-main ul { margin-top: 8px; padding-left: 0; }
.step-main ul::before { display: none; } /* İç çizgiyi kaldır */

.step-main ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.step-main ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* =========================================
   6. DİĞER (MathJax & Responsive)
   ========================================= */
mjx-container {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    .rapor-header h2 {
        font-size: 1.5rem;
    }
    
    .cikti_link_Sorular, 
    .cikti_link_webpage {
        width: 100%;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
    
    .q-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feedback-content { padding: 1rem; }
}