/* Genel stil */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
  background-color: #f4f4f4;
}

/* Üst bar stil */
.top-bar {
  width: 100%;
  height: 50px;
  background-color: #0d6dbb; /* Sidebar ile aynı renk */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center; /* Yatayda ortalamak için */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Orta dereceli gölge */
  padding-left: 10px; /* Sol tarafa biraz boşluk ekledik */
}

/* Logo stilini ekliyoruz */
.top-bar .logo {
  width: 127px; /* Logo boyutunu ayarlıyoruz */
  height: 28px; /* Logo boyutunu ayarlıyoruz */
  margin-right: 30px; /* Logo ile yazı arasına boşluk ekliyoruz */
  padding-left: 30px;
}

.top-bar .logo-right {
  width: 127px; /* Logo boyutunu ayarlıyoruz */
  height: 28px; /* Logo boyutunu ayarlıyoruz */
  margin-right: 30px; /* Logo ile yazı arasına boşluk ekliyoruz */
  padding-left: 1520px;
}

/* Top bar başlık stilini koruyalım */
.top-bar h2 {
  margin: 0;
  font-size: 24px;
  color: white;
}

/* Sidebar stil */
.sidebar {
  width: 250px;
  height: 100vh;
  background: #4192d4;
  padding: 20px;
  position: fixed;
  top: 50px; /* Üst barın altına yerleştiriyoruz */
  overflow-y: auto;
  color: #fff;
  z-index: 10;
  transition: width 0.3s ease;
}

.sidebar h2 {
  margin: 0;
  font-size: 18px;
  color: white;
  margin-bottom: 20px; /* Documentation başlığının altındaki boşluğu artırdık */
  margin-top: 10px;
}

/* Sidebar menü öğeleri */
.sidebar .menu-item {
  padding: 8px 10px;
  border-bottom: 1px solid #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: relative; /* Alt menü noktaları için */
  margin-bottom: 6px; /* Menü öğeleri arasına boşluk ekledik */
}

.sidebar .menu-item:hover {
  background: #0c457a; /* Hover durumunda daha koyu renk */
  transform: scale(1.05);
}

/* Alt menü stil */
.submenu {
  display: none;
  padding-left: 2px;
  transition: max-height 0.5s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.submenu.show {
  display: block;
  max-height: 500px;
  opacity: 1;
}

/* Alt menü bağlantıları */
.submenu a {
  display: flex;
  align-items: center;
  padding: 2px 0;
  text-decoration: none;
  color: white;
  font-size: 14px;
  position: relative;
}

.submenu a:hover {
  background: #14599b;
}

.submenu a.active {
  color: #fff;
}

/* Alt menüdeki noktalar */
.submenu a:before {
  content: "•"; /* Nokta işareti ekledik */
  color: #fff;
  font-size: 18px;
  margin-right: 10px; /* Noktalar ile metin arasına boşluk ekledik */
  display: inline-block;
  margin-left: 10px; /* Sol tarafta biraz boşluk bıraktık */
}

/* İçerik kısmı */
.content {
  margin-left: 270px;
  margin-top: 50px; /* Üst barın yüksekliği kadar boşluk bırakıyoruz */
  padding: 20px;
  padding-left: 20px;
  padding-left: 2cm; /* Sağdan 2cm boşluk ekledik */
  flex: 1;
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
}

/* İçerik geçişi */
.section-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Aktif olduğunda görünür olmalı */
.section-content.active {
  display: block;
  opacity: 1;
}

/* Buton hover efekti */
button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
}

button:hover {
  transform: scale(1.1);
  background-color: #45a049;
}

/* Tooltip stilini ekleyelim */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Scroll ile animasyonlu içerik geçişi */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Ok işaretinin dönüş animasyonu */
.arrow {
  display: inline-block;
  transition: transform 0.5s ease; /* Yumuşak dönüş efekti */
}

/* Menü açıldığında ok işaretinin 180 derece dönmesi */
.submenu.show .arrow {
  transform: rotate(180deg);
}

/* Duyarlı tasarım */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }

  .content {
    margin-left: 210px;
  }

  .sidebar .menu-item {
    font-size: 14px;
  }

  .sidebar h2 {
    font-size: 18px;
  }
}

/* API Section Styling */
.api-section {
  max-width: 800px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
}

/* Method Title */
.method-title {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 10px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}

/* Description and Usage Text */
.method-description,
.method-usage,
.code-description {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.5;
  margin: 10px 0;
}

/* URL Styling */
.method-url {
  font-size: 16px;
  margin: 10px 0;
}

.method-url a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.method-url a:hover {
  color: #3498db;
  text-decoration: underline;
}

.sample-title {
  font-size: 20px;
  color: #34495e;
  margin: 20px 0 15px 0;
  text-transform: uppercase;
}
.code-container {
  background-color: #2d2d2d;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  overflow-x: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-block {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #ecf0f1;
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .api-section {
    padding: 15px;
  }

  .method-title {
    font-size: 24px;
  }

  .sample-title {
    font-size: 18px;
  }

  .code-block {
    font-size: 12px;
  }
}
