* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  background-color: #f2f5f7;
  font-family: "Roboto", "Open Sans", sans-serif;
  /* Güvenlik ağı: herhangi bir sayfadaki bir öğe (negatif margin, sabit genişlik,
     taşan bir badge/tablo vb.) yanlışlıkla viewport'u aşarsa, tüm sayfanın yatay
     kaydırılabilir hale gelmesini engeller. Bu, üç panelin (Öğrenci/Öğretmen/Admin)
     üçünde de paylaşılan tek dosya olduğu için tek satırlık bir düzeltme hepsini kapsar. */
  overflow-x: hidden;
}
body::-webkit-scrollbar-thumb {
  background-color: #68A4C4;
  border-radius: 1rem;

}
body::-webkit-scrollbar-track {
   background: linear-gradient(to bottom, #d7e6ee, #f2f5f7);
   border-radius: 1.5rem;
}
.container-fluid-sidebar {
    padding: 4rem 2rem 2rem 3rem;
  width: 100%;

}

.containerSideBar {
  display: flex;
  flex: 1;
  height: 100%;
  min-height: 100vh;
}
ul{
padding-left:unset!important;
}
/* SIDEBAR GENEL */
.sidebar {
  position: relative;
  width: 110px;             /* Dar genişlik */
  background-color: var(--tmy-navy-deep, #122834);  /* Menü arka planı */
  transition: width 0.3s ease;
  overflow: visible;       /* Hamburger butonunun dışa taşması için */
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.sidebar.open {
  width: 313px;
}

/* HAMBURGER BUTONU */
.toggle-btn {
  position: absolute;
  top: 20px;        
  right: -20px;     /* Sağ kenarın biraz dışına çıksın diye -20px */
  z-index: 9999;    /* Üstte görünebilmesi için yüksek z-index */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffff; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.toggle-btn:hover {
    background-color: #f1f1f1;
  }
/* Üç çizgi */
.toggle-btn .bar {
  position: relative;
  width: 20px;
  height: 2px;
  background-color: #333; /* Siyah çizgi */
  transition: 0.2s;
}
.container-section {
  background-color: #fff;
  border-radius: 1.2rem;
  padding: 1rem;
  box-sizing: border-box;
}
.toggle-btn .bar::before,
.toggle-btn .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #333;
  transition: 0.2s;
}
.toggle-btn .bar::before {
  top: -6px;
}
.toggle-btn .bar::after {
  top: 6px;
}

/* LOGO & HEADER */
.sidebar-header {
  display: flex;
  padding: 2rem 1rem 1rem 1rem;
  justify-content: space-between;
}
.logo-circle {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 0;
  transition: 0.3s;
  text-decoration: none !important;
  overflow: hidden;
}
.tmy-panel-logo-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tmy-steel, #68a4c4) 0%, var(--tmy-navy, #1e4356) 100%);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tmy-panel-logo-text {
  display: none;
  margin-left: 10px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
}
.tmy-panel-logo-text small {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--tmy-steel, #68a4c4);
}
.sidebar.open .tmy-panel-logo-text {
  display: block;
}

/* MENÜ (UL) - gruplandırılmış bölümler */
.menu {
  margin-top: 0.5rem;
  list-style: none;
}

.menu-section-label {
  display: none;
  padding: 1.1rem 1rem 0.4rem 2.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #5f89a0;
}
.sidebar.open .menu-section-label {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  margin: 0.15rem 0.6rem 0.15rem 0.6rem;
  padding: 0.65rem 0.8rem 0.65rem 1.6rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
  position: relative;
}
.menu-item  a{
  padding: 0;
   color:#cbdce6;
   text-decoration: none;
   display: flex;
   align-items: center;
   width: 100%;
}
.paddingForMenuItem{
  padding: 0.8rem 1rem 1rem 2.5rem;

}

.menu-item:hover {
    background-color: #1e4356;
  }
.menu-item i {
  font-size: 1.05rem;
  width: 26px; /* simge alanı */
  text-align: center;
  margin-right: 0.5rem;
  color: var(--tmy-steel, #68a4c4);
  transition: color 0.2s;
}
/* Güvenlik ağı: sidebar içine düşen herhangi bir başlık/metin etiketi
   (ör. h1-h6), sayfa içeriği için tanımlı koyu renkleri miras alıp
   koyu lacivert zemin üstünde okunmaz hale gelmesin. */
.sidebar h1, .sidebar h2, .sidebar h3, .sidebar h4, .sidebar h5, .sidebar h6,
.sidebar p, .sidebar span, .sidebar div, .sidebar a {
  color: #cbdce6;
}
.sidebar .tmy-panel-logo-text {
  color: #fff;
}
.sidebar .active a, .sidebar .active i {
  color: #ffffff;
}
.menu-text {
  display: none;
  white-space: nowrap;
  transition: display 0.3s, margin-left 0.3s;
  margin-left: 0;
}
.sidebar.open .menu-text {
  display: block;
  margin-left: 8px;
}
/* Kapsam notu: bu kural sadece sol menü (.sidebar .menu-item) için tasarlandı.
   Önceden çıplak ".active" idi ve "active" class'ını kullanan HER öğeye (sekmeler,
   tab-content panelleri, stepper adımları vb.) sızıp istenmeyen koyu zeminlere
   neden oluyordu — .sidebar .menu-item.active olarak kapsamlandırıldı. */
.sidebar .menu-item.active {
  background: linear-gradient(90deg, var(--tmy-navy, #1e4356) 0%, var(--tmy-accent, #3f7fa3) 100%);
}
.sidebar .menu-item.active a,
.sidebar .menu-item.active i {
  color: #ffffff !important;
}
.sidebar .menu-item.active i {
  color: #a2cce3 !important;
}
/* SUBMENU (ACCORDION) */
.has-submenu .arrow {
  margin-left: auto; 
  font-size: 0.8rem;
  transform: rotate(0deg);
  transition: transform 0.3s;
  display: none; /* Başta sidebar kapalıyken gizleyelim */
}
.sidebar.open .has-submenu .arrow {
  display: inline-block; /* Menü açılınca gözüksün */
}
.submenu {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  margin-left: 2.5rem; /* İçeriden başlasın */
  border-left: 1px dashed #3a6178;
}
.submenu.open {
  height: auto;
}
.submenu li,
.submenu .submenu-item {
  padding: 0.4rem 1rem !important;
  font-size: 0.9rem !important;
  color: #cbdce6 !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
}
.submenu li i,
.submenu .submenu-item i {
  font-size: 1rem !important;
  width: 20px !important;
  min-width: 20px !important;
  text-align: center !important;
  color: var(--tmy-steel, #68a4c4) !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
}
.submenu li .menu-text,
.submenu .submenu-item .menu-text {
  display: inline-block !important;
  margin-left: 0 !important;
}
.submenu li:hover,
.submenu .submenu-item:hover {
  background-color: #1e4356 !important;
}
.rotate {
  transform: rotate(180deg);
}
h2{
    margin:0;color:#14374a;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: calc(1.625rem + .9vw);
}

/* 1) Mobil Header Temel Stili */
.mobile-header {
  display: none; 
  position: absolute;/* Varsayılan olarak kapalı, sadece dar ekranda açacağız */
  width: 100%;
  height: 60px;
  background-color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.mobile-header-logo img {
  height: 45px; /* Örnek logo yüksekliği */
  object-fit: cover;
}

.mobile-header-hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  opacity: 0;
}
.mobile-sidebar-close {
  font-size: 1.5rem;
  cursor: pointer;
  text-align: right;
  padding: 1rem;
}

/* 2) Mobil Sidebar (küçük ekranlarda tam ekran kaplayan) */
@media (max-width: 768px) {
  .mobile-header-hamburger{
    opacity: 1;
  }
  /* Masaüstü için kullanılan .toggle-btn'yi sakla */
  .toggle-btn {
    display: none;
  }

  /* Mobil header'ı göster */
  .mobile-header {
    display: flex;
  }
  .container-section {
    padding: 0.2rem;
  }
  /* Container yapısında mobilde layout ayarlaması */
  .containerSideBar {
    flex-direction: column; /* Sidebar üstte veya ekranda kapalı durumda */
  }
  
  /* .sidebar genel özellikleri (mobilde overlay gibi olsun) */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Başlangıçta tamamen gizli */
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto; /* İçerik scrollbar alabilir */
    transition: all 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  /* sidebar.open-mobile olduğunda ekranın tamamına gelsin */
  .sidebar.open-mobile {
    left: 0; 
    width: 100%!important;
  }

  /* Logo vs. mobil görünümde isterseniz büyüklük ayarlayabilirsiniz */
  .sidebar-header {
    padding: 1rem;
  }
  .logo-circle {
    width: 60px;
    height: 60px;
  }

  /* Menü itemları daha rahat görüntülemek için */
  .menu-item a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  /* İçerik (main) üst kısma yer açılsın diye marjin ekleyebilirsiniz. */
  .container-fluid-sidebar {
    padding: 0.2rem; 
    margin-top: 60px; /* mobile-header kadar boşluk */
  }
}
