/** Yönetici Portalı **/
/** css/style.css **/

html * {
  font-size: 14px;
  font-family: "Segoe UI", sans-serif !important;
  box-sizing: border-box;
}
.logo-fixed {
  position: fixed;
  bottom: 10px;
  right: 12px;
  width: 80px; /* İstersen küçültüp büyütebilirsin */
  opacity: 0.7; /* Hafif saydamlık */
  pointer-events: none; /* Tıklanamaz/seçilemez */
  user-select: none; /* Seçilmeyi tamamen engeller */
  z-index: 9999; /* Her şeyin üstünde olur */
}

#sabit-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background:darkred;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1002;
}
#sabit-header a {
  color: white;
  text-decoration: none;
}
/***** SABİT SIDEBAR *****/
#sabit-sidebar {
  position: fixed;
  top: 50px; /* header yüksekliği kadar */
  left: 0;
  width: 250px; /* kendi genişliğine göre ayarla */
  height: calc(100vh - 50px); /* alt kısmı da kapsar */
  background: black;
  color: white;
  overflow-y: auto;
  z-index: 1001;
}
/***** İÇERİK ALANI *****/
#content {
  margin-left: 250px; /* sidebar genişliği kadar */
  padding-top: 80px; /* header yüksekliği kadar */
  background: #f5f5f5;
  min-height: 98.3vh;
  color: #000000;
}
.menu {
  cursor: pointer;
  padding: 14px 22px;
  font-weight: bold;
  color: #ffffff;
  border-bottom: 1px solid #44515e;
  transition: background 0.3s ease, padding-left 0.3s;
  position: relative;
}
.menu:hover {
  background: #3d4e5e;
  padding-left: 30px;
}
.menu.active {
  background: #2e3c48;
  color: #ffffff !important;
  padding-left: 30px;
}
.menu.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #00bcd4;
}
.submenu {
  display: none;
  background: #f1f3f6;
  padding: 5px 0;
}
.submenu a {
  display: block;
  padding: 10px 35px;
  font-size: 14px;
  color: #333333 !important;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background 0.3s, border-left 0.3s, padding-left 0.3s;
}
.submenu a:hover {
  background: #e2e6ea;
  border-left: 4px solid #00bcd4;
  padding-left: 40px;
  color: #000000 !important;
}
.sorucheckbox {
  background: #AEBAC6;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
span {
  text-align: center;
}
/* Mesaj bildirimi */
#mesaj_bildirim {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vh;
  max-width: 60vh;
  max-height: 90vh;
  background:#20193F;
  padding: 40px;
  border: 2px solid #20193F;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-size:20px;
  font-weight: bold;
  text-shadow: black 1px 1px;
  color: white;
  text-align: center;
}
#mesaj_butonlar {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

#mesaj_butonlar button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #ECECEC;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 80px;
}

#mesaj_butonlar button:hover {
  background-color: #FFFFFF;
}
/* Etiketler */
label {
  display: block;
  font-weight: bold;
}
/* Inputlar */
input[type="text"], input[type="password"], input[type="file"], textarea, select {
  width: 100%;
  padding: 6px 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #ffffff;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="file"]:focus, textarea:focus, select:focus {
  border-color: #516171;
  box-shadow: 0 0 5px rgba(81, 97, 113, 0.5);
}
/* Buttonlar */
button, input[type="submit"], input[type="button"] {
  font-size: 14px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background-size: contain;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  border-radius: 6px;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
}
/* Checkboxlar */
input[type="checkbox"] {
  transform: scale(1.5);
}
.satir {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.sutun {
  display: inline-block;
}
.sutun.ad {
  width: 250px;
  text-align: center;
}
.sutun.tckimlik {
  width: 200px;
  text-align: center;
}
.sutun.grup {
  width: 200px;
  text-align: center;
}
.sutun.aktif {
  width: 150px;
  text-align: center;
}
.sutun.sifre {
  width: 200px;
  text-align: center;
}
.sutun.islem {
  width: 150px;
  text-align: center;
}
.ogrenci-arama input, .ogrenci-arama select, .ogrenci-ekle input, .ogrenci-ekle select,.ogretmen-arama input, .ogretmen-arama select, .ogretmen-ekle input, .ogretmen-ekle select {
  width: 100%;
  box-sizing: border-box;
}
.ogrenci-arama, .ogrenci-ekle, .ogretmen-arama, .ogretmen-ekle{
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ogrenci-arama,.ogretmen-arama {
  background: #FFA64D;
}
.ogrenci-ekle,.ogretmen-ekle {
  background: #D2D9DF;
}

#modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  z-index: 1003;
}
#yetki_modal, #grup_modal, #modal_kaynak, #modal_hedef, #soru_modal, #video_modal, #duzenleModal, #klasor_modal, #sil_modal, #duzenle_modal, #b_modal, #d_modal, #c_modal, #modal_video_duzenle, #karekod_modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  min-width: 540px;
  max-width: 60vh;
  max-height: 90vh;
  background: #D2D9DF;
  padding: 5px;
  border: 2px solid #D2D9DF;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1004;
  display: flex;
  flex-direction: column;
}
.modal-header {
  background: #516171;
  color: white;
  padding: 10px;
  border-radius: 8px 8px 0 0;
  font-size: 16px;
  font-weight: bold;
}
.modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* dış scroll kapatılır */
}
.modal-body-scroll {
  flex: 1;
  max-height: 75vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid #516171;
  border-radius: 0 0 8px 8px;
}
.modal-footer {
  padding: 10px;
  text-align: left;
  background: transparent;
}
.soru-satiri {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 5px;
  font-size: 14px;
  /* mobilde kırılabilsin */
  flex-wrap: wrap;
  row-gap: 6px;
}
.soru-satiri .sutun {
  padding: 4px;
  /* ✨ kırpma kaldırıldı, yazılar aşağı inebilir */
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}
/* Sütun oranları korunuyor */
.sutun.no {
  width: 10%;
}
.sutun.cevap {
  width: 10%;
}
.sutun.ogretmen {
  width: 25%;
}
.sutun.adi {
  width: 45%;
}
.sutun.tarih {
  width: 20%;
}
.sutun.durum {
  width: 10%;
}
.sutun.islemler {
  width: 25%;
}
.sutun.baslik {
  width: 60%;
  text-align: right
}
.sutun.sonuc {
  width: 40%;
  text-align: left
}
.sutun.durum.yesil {
  color: green;
}
.sutun.durum.kirmizi {
  color: red;
}
.soru-satiri button {
  margin-left: 5px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 50px;
  background: #607d8b;
  color: white;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .soru-satiri .sutun {
    width: 100% !important;
  }
  .sutun.islemler {
    text-align: left;
  }
}

.btn-close {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: url("icons/kapat.png") center/contain no-repeat;
  border: none;
  cursor: pointer;
  z-index: 10000;
  border-radius: 50%;
  transition: transform 0.15s;
}
.btn-close:hover {
  transform: scale(1.1);
}

/* Vektörel player sahnesi (16:9 viewport içinde çizilecek) */
.vektor-stage {
  position: relative;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
}
.video-stage{
  position: relative;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  width: auto;
  height: auto;
  aspect-ratio: 16/9;           /* 16:9 görünüm */
  max-width: 100%;
  max-height: calc(100vh - 60px);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
#video_stage > video{
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

/* =========================
   BIRLESIK PLAYER UI (video+vektörel)
   ========================= */
.uibar-wrap{
  position:absolute; left:0; right:0; bottom:0;
  height:64px; pointer-events:none;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.uiplayer{
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px;
  display:flex; align-items:center; gap:10px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity:1; transition:opacity .25s;
  pointer-events:auto;
}
.uiplayer.hidden{ opacity:0; pointer-events:none; }

/* === Unified UI icon buttons === */
.uibtn{
  width:50px; height:50px; border-radius:25px; border:0;
  display:flex; align-items:center; justify-content:center;
  background:#0f3a49;            /* iç dolgu */
  cursor:pointer; box-shadow:0 0 4px rgba(0,0,0,.5);
  transition:transform .15s, background .15s;
  /* ikon resmi */
  background-position:center;
  background-repeat:no-repeat;
  background-size:50% 50%;
}
.uibtn:hover{ transform:scale(1.08);}

/* ikon durum sınıfları */
.icon-play   { background-image:url('icons/play.png'); }
.icon-pause  { background-image:url('icons/pause.png'); }

.icon-sound  { background-image:url('icons/sound_1.png'); }
.icon-muted  { background-image:url('icons/sound_2.png'); }

.icon-fs     { background-image:url('icons/fs_1.png'); }   /* enter fs */
.icon-exitfs { background-image:url('icons/fs2.png'); }    /* exit fs */

.uitime{
  color:#fff; font-variant-numeric:tabular-nums; opacity:.95;
  min-width:90px; text-align:center;
}

/* ------- SEEK ortak değişkenleri ------- */
.uiseek{
  --seek-fill: 0%;           /* JS güncelliyor */
  --seek-color: #1dd9f5;     /* dolum rengi */
}

/* Temel görünüm (ortak) */
.uiseek{
  -webkit-appearance:none; appearance:none;
  position: relative;
  flex:1; width:100%;
  height: 24px;                     /* bar yüksekliği */
  border:0; outline:none; cursor:pointer;
  /* 1) Üstte renk katmanı (genişliği doluma göre)
     2) Altta bar dokusu (tam genişlik)  */
  background:
    linear-gradient(to right, var(--seek-color) 0 100%),
    url("icons/bar.png");
  background-size: var(--seek-fill) 100%, 100% 100%;
  background-position: left center, center;
  background-repeat: no-repeat, no-repeat;

  /* Sihir burada: renk, alttaki bar ile harmanlanır.
     Böylece çizgiler/doku kaybolmaz. */
  background-blend-mode: screen, normal;

  border-radius: 12px;
}

/* WebKit track – blend yine geçerli kalır */
.uiseek::-webkit-slider-runnable-track{
  height:24px; border:0; border-radius:12px;
  background:
    linear-gradient(to right, var(--seek-color) 0 100%),
    url("icons/bar.png");
  background-size: var(--seek-fill) 100%, 100% 100%;
  background-position: left center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: screen, normal;
}

/* WebKit thumb – dairen */
.uiseek::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width: 28px; height: 28px;
  border:0; border-radius:50%;
  background: url("icons/circle.png") center/contain no-repeat;
  margin-top: -2px;     /* hizalama ince ayarı */
  cursor: pointer;
}

/* Firefox */
.uiseek::-moz-range-track{
  height:24px; border:0; border-radius:12px;
  background:
    linear-gradient(to right, var(--seek-color) 0 100%),
    url("icons/bar.png");
  background-size: var(--seek-fill) 100%, 100% 100%;
  background-position: left center, center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: screen, normal;
}
.uiseek::-moz-range-progress{
  background: transparent;    /* dolumu üst katman veriyor */
}
.uiseek::-moz-range-thumb{
  width: 28px; height: 28px; border:0; border-radius:50%;
  background: url("icons/circle.png") center/contain no-repeat;
  cursor: pointer;
}

/* Eski Safari için güvenli geri dönüş */
@supports (-webkit-appearance:none) {
  .uiseek{ background-color: transparent; }
}
.uibar-wrap {
    pointer-events: none !important;z-index: 0 !important;
}