/* Temel Ayarlar */
body {
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #000;
}

/* Sidebar */
#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  margin-left: -250px;
  transition: margin 0.25s ease-out;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  background-color: #000;
  z-index: 1000;
  position: fixed;
  color: #fff;
}

#sidebar-wrapper .sidebar-heading {
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #28a745;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  margin: 1rem 0;
  text-align: center;
}

/* Sidebar İçeriği */
.list-group {
  width: 100%;
}

.list-group-item {
  border: none;
  padding: 0.65rem 1.25rem;
  background-color: transparent !important;
  transition: background-color 0.2s ease;
}

.list-group-item-action {
  color: #e0e0e0;
  font-weight: 500;
}

.list-group-item-action:hover {
  background-color: rgba(40, 167, 69, 0.15) !important;
  color: #ffffff;
}

.list-group-item-action.active {
  background-color: #28a745 !important;
  color: #fff;
  border-left: 4px solid #198754;
}

/* Sayfa İçeriği */
#page-content-wrapper {
  min-width: 100vw;
  transition: margin-left 0.25s ease-out;
}

/* Toggle Etkileşimi */
#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

/* Dropdown */
.dropdown-menu {
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  color: #ccc;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background-color: rgba(40, 167, 69, 0.2);
}

/* Divider */
.sidebar-divider {
  height: 1px;
  margin: 1rem 0;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Toggler Butonlar */
.navbar-toggler,
.mobile-toggler,
.desktop-toggler {
  background-color: #28a745;
  border: none;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.navbar-icon {
  font-size: 1.5rem;
  color: #28a745;
  margin-right: 0.5rem;
}

/* Profil Bilgisi */
.profile-section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Footer */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  background-color: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* Responsive: Masaüstü */
@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    margin-left: 250px;
    width: calc(100% - 250px);
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
  }

  #wrapper.toggled #page-content-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .mobile-toggler {
    display: none;
  }

  .desktop-toggler {
    display: block;
  }
}

/* Responsive: Mobil */
@media (max-width: 767.98px) {
  #sidebar-wrapper {
    margin-left: -250px;
  }

  #page-content-wrapper {
    margin-left: 0;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
  }

  .desktop-toggler {
    display: none;
  }

  .mobile-toggler {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  #wrapper.toggled .sidebar-overlay {
    display: block;
  }
}
