/* ==========================================================================
   BOZKURT ORTAOKULU - ÖĞRENCİ PANELİNE ÖZEL STİLLER
   v2.4 - Tablo başlıkları, bütünleşik görünüm için güncellendi.
   ========================================================================== */

/* === BİLGİ KUTULARI (Ortalama ve Sıralama) === */
.bilgi-kutu {
  color: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ca2323, #cc1616cc);
  box-shadow: 0 4px 12px rgba(230, 47, 47, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.bilgi-kutu:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 47, 47, 0.5);
}
.bilgi-kutu h2 {
  margin: 0 0 5px 0;
  font-weight: 500;
}
.bilgi-kutu p {
  font-weight: 700;
  margin: 0;
}

/* Kutu özel boyutlandırmaları */
.genel-ortalama-kutu {
  margin: 20px auto;
  max-width: 300px;
}
.siralama-kutulari {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.siralama-kutu {
  flex-basis: 220px;
}

/* Kutu içindeki metin boyutları */
.genel-ortalama-kutu h2 {
  font-size: 1.5rem;
}
.genel-ortalama-kutu p {
  font-size: 1.8rem;
}
.siralama-kutu h2 {
  font-size: 1.2rem;
}
.siralama-kutu p {
  font-size: 1.3rem;
}

/* Masaüstü için "Yıllık Puan Ortalaması" yazısını büyüt */
@media (min-width: 768px) {
  .genel-ortalama-kutu h2 {
    font-size: 1.3rem;
  }
}

#starRating {
  font-size: 1.5rem;
  display: block;
  margin-top: 5px;
  letter-spacing: 5px;
}

/* === SINAV TABLOLARI VE DETAYLARI === */
.exam-header {
  display: flex;
  align-items: center;
  /* DEĞİŞİKLİK 1: Arka plan, diğer kırmızı kutularla tutarlı hale getirildi. */
  background: linear-gradient(135deg, #ca2323, #cc1616cc);
  /* DEĞİŞİKLİK 2: Koyu arka plan üzerinde okunabilirlik için metin rengi beyaza çevrildi. */
  color: white;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  /* DEĞİŞİKLİK 3: Kenarlık rengi arka planla aynı yapılarak bütünleşik bir görünüm sağlandı. */
  border: 1px solid #ca2323;
  border-bottom: none;
  margin-top: 5px;
  -webkit-tap-highlight-color: transparent;
}
.exam-header .left {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  white-space: nowrap;
}
.exam-header .center {
  flex-shrink: 0;
  margin: 0 8px;
}
.exam-header .right {
  flex: 1;
  text-align: right;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Masaüstü için .exam-header left/right daha büyük yazı */
@media (min-width: 768px) {
  .exam-header .left,
  .exam-header .right {
    font-size: 1rem;
  }
}
#latestExamStatic .exam-header {
  cursor: default;
}

.exam-table-container {
  border: none;
  border-radius: 0;
  background-color: #fff;
  overflow-x: auto;
}

.exam-header + .exam-table-container {
  margin-top: -1px;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0 0 8px 8px;
  border: 1px solid #dee2e6;
  border-top: none;
}

.exam-table th,
.exam-table td {
  border: 1px solid #aba2a2c4;
  padding: 8px 5px;
  text-align: left;
  font-size: 0.90rem;
  font-weight: 600;
}

/* Masaüstü için daha geniş tablo hücreleri */
@media (min-width: 768px) {
  .exam-table th,
  .exam-table td {
    padding: 8px 6px;
    font-size: 1rem;
  }
}

#pastExams .exam-table-container {
  background-color: transparent;
  overflow: visible;
}

#pastExams .exam-header {
 border: 1px solid #dee2e6;
  /* DEĞİŞİKLİK: Sadece üst köşeler yuvarlatılacak şekilde güncellendi. */
  border-radius: 8px 8px 0 0;
  margin-top: 20px;
  /* Başlığın arka planını ve rengini de diğerleriyle tutarlı hale getirelim */
  background: linear-gradient(135deg, #ca2323, #cc1616cc);
  color: white;
  border-color: #ca2323;
}

#pastExams .details {
  border: none;
  border-radius: none;
  margin-top: -1px;
  overflow: hidden;
}

.exam-table thead th {
  background-color: #fcf6f6bb;
  font-weight: 600;
}
.exam-table thead td {
  background-color: #ffffff;
  font-weight: 600;
}
.exam-table .main-header-row th {
  color: #343a40;
}
.exam-table .lesson-header-row th {
  background-color: #fcf6f6bb;
}
.exam-table th:first-child,
.exam-table td:first-child {
  width: 32%;
  text-align: left;
  padding-left: 10px;
}
.exam-table td.clickable-cell:first-child {
  font-weight: 600;
}
.exam-table tbody tr.exam-total-row {
  background-color: #fcf6f6bb;
  font-weight: 600;
}
.details {
  display: none;
}


/* === GRAFİK MODALI İÇİN ÖZEL STİLLER (AI MODAL DEĞİL) === */
#dersDetayModal .modal-icerik {
  background-color: #ffffff;
  padding: 25px;
  width: 90%;
  max-width: 750px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

#modalDersAdi {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
  text-align: center;
}
.modal-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  display: block;
}
.chart-container {
  position: relative;
  width: 100%;
  height: 400px; /* Öğretmen paneli ile aynı */
}
.chart-ort-bilgi {
  font-size: 0.9rem;
  color: #555;
  margin-top: 15px;
  text-align: center;
}

/* === YARDIMCI STİLLER === */
.latest-exam-tag {
  background-color: white;
  color: #e62f2f; 
  border: 1px solid #c82323;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    /* Başlangıç gölgesi de beyaz ve daha görünür yapıldı. */
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); 
  }
  50% { 
    transform: scale(1.05); 
    /* Büyüyen hale efekti şeffaf beyaza dönüşüyor. */
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); 
  }
}

.clickable-cell { 
  cursor: pointer; 
  color: #c00; 
  font-weight: 600; 
  transition: background-color 0.2s ease; 
  -webkit-tap-highlight-color: transparent;
}
.clickable-cell:hover {
  background-color: #fff3f3;
}

/* Grafik Modalı Başlık Hizalama Düzeltmesi */
#dersDetayModal .modal-icerik {
  position: relative;
}

#dersDetayModal .kapat-dugme {
  position: absolute;
  top: 15px;
  right: 20px;
  float: none;
}

/* =======================================================
   YENİ: Hedef Lise Analizi Tablosu Stilleri
   ======================================================= */

.puan-pozitif {
  color: #00812e;
  font-weight: 700;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.puan-negatif {
  color: #c00;
  font-weight: 700;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* =======================================================
   MOBİL UYUMLULUK DÜZENLEMELERİ
   ======================================================= */
@media (max-width: 600px) {
  #dersDetayModal .modal-icerik {
    padding: 15px;
  }
}
