
/* ==========================================================================
   BOZKURT ORTAOKULU - ORTAK STİLLER DOSYASI (ortaklar.css)
   v3.0 - Tüm ortak CSS stilleri (logo, başlık, butonlar, girişler) birleştirildi.
   
   Bölüm Sıralaması:
   • Temel ve Genel Stiller
   • Logo Stili
   • Header ve Başlık Stiller
   • Buton Stiller
   • Giriş Sayfası Stiller
   • Yardımcı Stiller
   • Responsive Tasarımlar
   ========================================================================== */

/* =========================================================
   TEMEL VE GENEL STİLLER
   ========================================================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  padding: 10px;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* =========================================================
   LOGO STİLİ
   ========================================================= */

.header img {
  /* Masaüstü için varsayılan boyut */
  height: 200px;
  margin-bottom: 15px; /* Logo altındaki boşluk */
  margin-top: -40px;
  object-fit: contain; /* Resmin oranını korur */
}

/* =========================================================
   GENEL HEADER VE BAŞLIK YAPISI
   ========================================================= */

.header {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  border-bottom: 2px solid #dc3545;
  padding-bottom: 10px;
  padding-top: 50px; /* Menü butonu için yer açar */
}

/* === ANA SAYFA BAŞLIĞI (HEADER İÇİNDEKİ) === */
.header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #333;
  text-transform: uppercase; /* ✅ H1 metnini tamamen büyük harf gösterir */
}

.header h1 span {
  font-weight: 700;
  display: block;
  font-size: 1.7rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 2px 0;
}

#ogretmenAdi {
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0 10px;
  max-width: 100%;
  width: auto;
}

/* YENİ: Sınav sonuçları sayfasındaki tarih başlığı için stil */
.deneme-tarih-baslik {
  font-size: 1.1rem !important;
}

/* === GENEL BÖLÜM BAŞLIKLARI === */
.bölüm-başlığı {
  text-align: center;
  color: #343a40;
  margin: 35px 0 8px 0;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 2px solid #dc3545;
  line-height: 1.2; /* İki satırlı başlık için satır yüksekliği */
}

.panel-basligi {
  text-align: center;
  color: #343a40;
  margin: 35px 0 8px 0;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 2px solid #dc3545;
  line-height: 1.2;
  white-space: nowrap;
}

/* =========================================================
   BUTON 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;
}

/* 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;
}

/* =========================================================
   GİRİŞ SAYFASI STİLLERİ
   ========================================================= */

/* === Login Container Ortak Stil === */
.login-container {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* === Login Page Body Ortak Stil === */
body.login-page {
  /* ortaklar.css'ten gelen font-family ve background-color kullanılacak. */
  /* Sadece ortalama için gerekli stiller burada kalıyor. */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* === Login Form Input Grup Ortak Stil === */
.input-group {
  margin-bottom: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.input-group input[type="text"],
.input-group input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  border-color: #e62f2f;
  box-shadow: 0 0 4px rgba(230, 47, 47, 0.4);
}

.input-group input[type="checkbox"] {
  transform: scale(1.2);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  margin-right: 10px;
}

/* === Checkbox Grup Ortak Stil === */
.input-group.checkbox-group {
  display: block;
  align-items: center;
}

.input-group.checkbox-group label {
  display: inline-block;
  margin: 0;
  line-height: 1.2;
}

/* Chrome Autofill Arka Plan Rengi Değiştirme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffe6e6 inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Ortak header'ın giriş kutusu içindeki görünümünü düzenler */
.login-container .header {
  padding: 0;
  border-bottom: none;
  margin-bottom: 20px;
}

.login-container .header img {
  margin-top: 0;
}

/* =========================================================
   YARDIMCI STİLLER
   ========================================================= */

/* Mobil cihazlarda dokunma sırasında çıkan varsayılan vurgu rengini kaldırır. */
a, button, [onclick] {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   RESPONSIVE TASARIM VE MOBİL UYUMLULUĞU
   ========================================================= */

/* === Logo MOBİL UYUMLULUK === */
@media (max-width: 768px) {
  .header img {
    /* Mobil cihazlar için daha küçük bir boyut */
    height: 150px;
  }
}

/* === HEADER MOBİL İÇİN EK FONT AYARI === */
@media (max-width: 480px) {
  .header h1 span {
    font-size: clamp(1.4rem, 6vw, 1.4rem);
    font-weight: 1000;
  }
}

/* === SPIN ANIMASYONU === */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

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

