/* ==========================================================================
   BOZKURT ORTAOKULU - ORTAK BİLEŞEN STİLLERİ
   ========================================================================== */

/* === GÜNCELLENDİ: Ortak Köşe Buton Stili === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  background: gray; /* Varsayılan renk */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  -webkit-tap-highlight-color: transparent; /* Mobil dokunma efektini kaldır */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* === RENK DEĞİŞTİRİCİ === */
/* Kırmızı renk temasını uygular */
.btn-primary {
  background: linear-gradient(135deg, #ca2323, #cc1616cc);
  box-shadow: 0 4px 12px rgba(230, 47, 47, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff6666, #e62f2f);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* Hover'da daha belirgin gölge */
}

/* === BOYUT/DAVRANIŞ DEĞİŞTİRİCİLERİ === */

/* Butonu bulunduğu kabın tamamını kaplayacak şekilde genişletir */
.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Butonu küçük, kare bir ikon butonuna dönüştürür */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  font-size: 1.5rem; /* İkon boyutu */
}

/* Buton içindeki SVG ikonların boyutunu garantiler */
.btn-icon svg {
    width: 24px;
    height: 24px;
}

/* === GÜNCELLENDİ: Köşe Buton Konteynerleri (Konumlandırma) === */
.year-selector-container {
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 1001;
}
.ai-icon-container {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 1001;
}
.pdf-icon-container {
    position: absolute;
    bottom: 1px;
    right: 1px;
    z-index: 1001;
}
.logout-icon-container {
    position: absolute;
    bottom: 1px;
    left: 1px;
    z-index: 1001;
}

/* === YENİ VE GÜNCELLENMİŞ: SINIF VE YIL SEÇİM MENÜSÜ === */
.year-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px; /* Genişlik artırıldı */
    box-shadow: 0px 10px 25px 0px rgba(0,0,0,0.25); /* Gölge belirginleştirildi */
    border-radius: 12px; /* Köşeler yuvarlatıldı */
    overflow: hidden;
    z-index: 1;
    border: 1px solid #eee;
    max-height: 70vh; /* Ekran yüksekliğinin %70'ini geçmesin */
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma çubuğu çıksın */
}
.year-dropdown-content a {
    color: #333; /* Metin rengi koyulaştırıldı */
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap; /* GÜNCELLEME: Metnin alt satıra kaymasını engeller */
}
.year-dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* Aktif Sınıf ve Yıl Stili */
.year-dropdown-content a.active-year,
.year-dropdown-content a.active-class {
    background-color: #ca2323;
    color: white;
    font-weight: bold;
}
.year-dropdown-content.show {
    display: block;
}

/* Menü Başlıkları */
.year-dropdown-content .dropdown-header {
    padding: 12px 20px 8px 20px;
    font-weight: bold;
    color: #ca2323; /* Ana renkle uyumlu başlık */
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background-color: #fdfdfd;
}

/* Menü Ayıracı */
.year-dropdown-content .dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: #e0e0e0;
}

/*
  AI (Yapay Zeka) ve Spinner stilleri ai.css dosyasına taşındı.
*/
/* ==========================================================================
   PDF ve Diğer Asenkron İşlemler İçin Buton Yükleme Animasyonu
   ========================================================================== */

.btn-spinner {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #fff;
  width: 20px; /* Boyut biraz büyütüldü */
  height: 20px; /* Boyut biraz büyütüldü */
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Buton içeriğini dikeyde ortalamak için */
.btn.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}