html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ============================================================
   odevSepeti - tema, mobil uyum ve anasayfa gorsel iyilestirmeleri
   ============================================================ */
:root {
  --os-primary: #4f46e5;
  --os-primary-dark: #3730a3;
  --os-accent: #06b6d4;
  --os-bg-soft: #f5f6fb;
}

body {
  background-color: var(--os-bg-soft);
}

/* ---- Navbar ---- */
.os-navbar {
  background: linear-gradient(135deg, var(--os-primary) 0%, var(--os-primary-dark) 100%) !important;
}

.os-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  color: #fff !important;
}

.os-navbar .nav-link {
  color: rgba(255, 255, 255, .88) !important;
  font-weight: 500;
  border-radius: .5rem;
  padding: .55rem .9rem !important;
  margin: .15rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: background-color .15s ease, color .15s ease;
}

.os-navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, .16);
  color: #fff !important;
}

.os-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, .24);
  color: #fff !important;
  font-weight: 700;
}

.os-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .5);
}

.os-navbar .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(220%);
}

/* ---- Hero bolumu (anasayfa) ---- */
.os-hero {
  background: linear-gradient(135deg, var(--os-primary) 0%, var(--os-accent) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(79, 70, 229, .25);
}

.os-hero h1 {
  font-weight: 700;
}

.os-hero .btn-light {
  font-weight: 600;
}

.os-hero-emoji {
  font-size: 6rem;
  line-height: 1;
}

/* ---- Istatistik kartlari ----
   Kart icerigi 2 satir: 1) ikon + deger yan yana, 2) etiket altta.
   Boyutlar onceki halden ~%20 kucultuldu (daha az dikey yer kaplasin). */
.os-stat-card {
  border: none;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: .6rem .32rem;
  text-align: center;
  height: 100%;
}

.os-stat-card .os-stat-icon {
  font-size: .92rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: .25rem;
}

.os-stat-card .os-stat-value {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--os-primary-dark);
  line-height: 1.2;
}

.os-stat-card .os-stat-label {
  display: block;
  font-size: .58rem;
  color: #212529;
}

/* Birlesik ust istatistik satiri (Toplam Soru, Ders, Konu ... Bekleyen/Degerlendirilen
   Odev): buyuk ekranda (lg+) tek satirda 9 kutu, altinda (mobil/tablet) 5 kutuluk
   izgara ile 2 satira sarar. Turuncu/yesil renkler siradan aliyor. */
.os-stat-row-birlesik {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
}

@media (min-width: 992px) {
  .os-stat-row-birlesik {
    grid-template-columns: repeat(9, 1fr);
  }
}

.os-stat-card--turuncu {
  background: #fff4e6;
}

.os-stat-card--turuncu .os-stat-value {
  color: #d9480f;
}

.os-stat-card--yesil {
  background: #eafaf1;
}

.os-stat-card--yesil .os-stat-value {
  color: #2f9e44;
}

/* Ders bazli cozulen soru kartlari icin biraz daha kompakt varyant */
.os-stat-card-mini {
  padding: .48rem .28rem;
}

.os-stat-card-mini .os-stat-icon {
  font-size: .8rem;
}

.os-stat-card-mini .os-stat-value {
  font-size: .92rem;
}

.os-stat-card-mini .os-stat-label {
  font-size: .55rem;
}

/* ---- Modul (hizli erisim) kartlari ----
   Tum ekranlarda satir basina 6 kutu (bkz. Home/Index.cshtml'de row-cols-6);
   kutu icinde ikon + yazi yan yana, tek satirda. */
.os-module-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  border: none;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: .5rem .3rem;
  text-align: center;
  text-decoration: none;
  color: #212529;
  height: 100%;
  min-height: 44px;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}

.os-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .2);
  color: var(--os-primary-dark);
  text-decoration: none;
}

.os-module-card .os-module-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.os-module-card .os-module-title {
  font-weight: 600;
  font-size: .62rem;
  line-height: 1.15;
}

@media (max-width: 575.98px) {
  .os-module-card {
    padding: .4rem .2rem;
    gap: .2rem;
    min-height: 40px;
  }

  .os-module-card .os-module-icon {
    font-size: .85rem;
  }

  .os-module-card .os-module-title {
    font-size: .52rem;
  }
}

/* ---- Genel mobil uyum ---- */
@media (max-width: 575.98px) {
  .os-hero {
    padding: 1.75rem 1.25rem;
    text-align: center;
  }

  .os-hero .display-4, .os-hero .display-5 {
    font-size: 1.85rem;
  }

  .btn {
    padding-top: .55rem;
    padding-bottom: .55rem;
  }

  .btn-sm {
    padding: .4rem .6rem;
    font-size: .8rem;
  }

  table.table td, table.table th {
    font-size: .85rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* Filtre formlarindaki select/label'lar telefonda tam genislik ve rahat dokunulabilir olsun */
@media (max-width: 767.98px) {
  form.os-filtre-formu select.form-select,
  form.os-filtre-formu .form-label {
    width: 100%;
  }
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   Odev Degerlendir - optik form (soru basina A/B/C/D baloncuklari)
   ============================================================ */
.os-optik-form {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.os-optik-satir {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem .6rem;
  border-radius: .5rem;
  background: transparent;
  border: 1px solid #e9ecef;
  transition: background-color .15s ease, border-color .15s ease;
}

.os-optik-satir.os-secili {
  background: #d3f9d8;
  border-color: #94e2a8;
}

.os-optik-soru-no {
  flex: 0 0 auto;
  min-width: 1.75rem;
  font-weight: 700;
  color: #495057;
  text-align: center;
}

.os-optik-secenekler {
  display: flex;
  gap: .5rem;
}

.os-optik-baloncuk {
  flex: 0 0 auto;
  /* Cevap anahtari giris kutulari (Odev Degerlendir + Test Ekle/Duzenle optik formu) -
     genislik/yukseklik ve okunabilirlik icin yazi boyutu %20 buyutuldu (2rem -> 2.4rem,
     .85rem -> 1.02rem). */
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid #ced4da;
  background: #fff;
  color: #495057;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}

.os-optik-baloncuk:hover {
  border-color: var(--os-primary);
  transform: scale(1.08);
}

.os-optik-baloncuk.os-secili {
  background: var(--os-primary);
  border-color: var(--os-primary);
  color: #fff;
}

@media (max-width: 575.98px) {
  .os-optik-baloncuk {
    /* Mobilde ayrica %25 daha buyutuldu (2.04rem -> 2.55rem, .9rem -> 1.125rem). */
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.125rem;
  }

  .os-optik-satir {
    gap: .4rem;
    padding: .3rem .4rem;
  }

  .os-optik-secenekler {
    gap: .35rem;
  }
}

/* Test Soru Listesi (yildizlama) ekrani */
.os-yildiz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.os-yildiz-form {
  margin: 0;
}

.os-yildiz-buton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ced4da;
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.os-yildiz-buton .os-yildiz-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.os-yildiz-buton .os-yildiz-no {
  font-size: .65rem;
  color: #495057;
  line-height: 1;
}

.os-yildiz-buton.os-secili {
  background: #fff9db;
  border-color: #f5c518;
}

/* Soru Takip / Odev Create panellerinde Ders > Kitap > Konu kategori agaci */
.os-kategori-agac {
  margin-top: .25rem;
}

.os-kategori-detay {
  margin-bottom: .5rem;
}

.os-kategori-detay > summary {
  cursor: pointer;
  font-weight: 600;
  padding: .4rem .6rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: .35rem;
  list-style: none;
}

.os-kategori-detay > summary::-webkit-details-marker {
  display: none;
}

.os-kategori-detay > summary::before {
  content: '▸';
  display: inline-block;
  width: 1rem;
  transition: transform .15s ease;
}

.os-kategori-detay[open] > summary::before {
  transform: rotate(90deg);
}

.os-kategori-icerik {
  margin-left: 1rem;
  padding-left: .75rem;
  border-left: 2px solid #e9ecef;
  margin-top: .5rem;
}

.os-kategori-kitap > summary {
  font-weight: 500;
  background: #fff;
}

.os-kategori-konu > summary {
  font-weight: 400;
  font-size: .95rem;
  background: #fff;
}

.os-kategori-konu .form-check {
  padding-top: .15rem;
}

/* Kitap kapak resmi kucuk gorunum (liste/kart baslik alanlarinda) */
.os-kitap-resim {
  width: 32px;
  height: 42px;
  object-fit: cover;
  border-radius: .25rem;
  border: 1px solid #dee2e6;
  vertical-align: middle;
  margin-right: .4rem;
}

.os-kitap-resim-yok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 42px;
  border-radius: .25rem;
  border: 1px dashed #ced4da;
  color: #adb5bd;
  font-size: 1rem;
  vertical-align: middle;
  margin-right: .4rem;
}

.os-kitap-resim-buyuk {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: .3rem;
  border: 1px solid #dee2e6;
  vertical-align: middle;
  margin-right: .6rem;
}

/* Kitap Ekle/Duzenle formundaki resim onizlemesi */
.os-kitap-resim-onizleme {
  max-width: 140px;
  max-height: 180px;
  object-fit: cover;
  border-radius: .35rem;
  border: 1px solid #dee2e6;
  display: none;
  margin-top: .5rem;
}
