/* Genel Ayarlar Sayfası Container'ı */
.wrap.llms-settings-wrap {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px;
  box-sizing: border-box;
  max-width: 1300px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeIn 0.5s ease-in-out;
}

/* Animasyon: Sayfa yüklenirken hafif bir giriş efekti */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ana Konteyner: Sidebar + İçerik */
.llms-settings-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  position: relative; /* Sticky pozisyonlama için */
}

/* Sidebar - Sticky Yapma */
.llms-sidebar {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: sticky;
  height: fit-content; /* Ekran yüksekliğine göre ayarlama */
  overflow-y: auto; /* İçerik fazla olursa kaydırma çubuğu */
}
.llms-sidebar:hover {
  transform: translateY(-5px);
}
.llms-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.llms-sidebar ul li {
  margin-bottom: 10px;
}
.llms-sidebar ul li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(to right, transparent 50%, #6ab04c 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}
.llms-sidebar ul li a:hover {
  color: #6ab04c;
  background-position: left bottom;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* İçerik Alanı */
.llms-content {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

/* Sticky Header - Butonların Olduğu Alan */
.llms-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  padding: 15px 25px;
  border-bottom: 1px solid #e2e4e7;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

/* Butonlar */
.llms-button,
.llms-button-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.llms-button {
  background: linear-gradient(45deg, #6ab04c, #badc58);
  border: none;
  color: #fff;
}
.llms-button:hover {
  background: linear-gradient(45deg, #badc58, #1f6391);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}
.llms-button-secondary {
  background: #ffffff;
  border: 2px solid #6ab04c;
  color: #6ab04c;
}
.llms-button-secondary:hover {
  background: #6ab04c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Kart Stilleri */
.llms-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}
.llms-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.llms-card h2 {
  margin: 0;
  padding: 20px 25px;
  border-bottom: 1px solid #eef2f6;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(to right, #6ab04c, #badc58);
  color: #fff;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.llms-card h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
}

/* Kart İçeriği */
.llms-card-content {
  padding: 25px;
  background: #fff;
}

/* Form Elemanları */
.form-control,
.regular-text,
.large-text {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d2dae2;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-size: 14px;
  background: #fafafa;
}
.form-control:focus,
.regular-text:focus,
.large-text:focus {
  border-color: #6ab04c;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
  background: #fff;
}

/* Tablo Stilleri */
.widefat {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.widefat th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 1px solid #e2e4e7;
}
.widefat td {
  padding: 15px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
  transition: background 0.3s ease;
}
.widefat tr:hover td {
  background: #f5f8fa;
}

/* Butonlar için mikro animasyon */
.button {
  border-radius: 8px;
  padding: 8px 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}
.button:hover {
  background: #c0392b;
  transform: scale(1.05);
}

/* Responsive Tasarım */
@media screen and (max-width: 780px) {
  .llms-settings-container {
      flex-direction: column;
  }
  .llms-sidebar {
      flex: 0 0 auto;
      width: 100%;
      margin-bottom: 30px;
      position: relative; /* Mobilde sticky kaldır */
      height: auto; /* Mobilde sabit yükseklik iptal */
  }
  .llms-sticky-header {
      flex-direction: column;
      align-items: stretch;
      padding: 10px;
  }
  .llms-sticky-header button,
  .llms-sticky-header a {
      width: 100%;
      margin-bottom: 10px;
  }
  .llms-card {
      margin-bottom: 20px;
  }
}

/* Ekstra Şıklık: Bildirim Alanı */
#update-status {
  margin-left: 15px;
  font-size: 14px;
  font-weight: 500;
  color: #27ae60;
  transition: opacity 0.3s ease;
}

/* Animasyonlu Durum Mesajları */
.status-message {
  padding: 8px 16px;
  border-radius: 20px;
  background: #27ae60;
  color: #fff;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}
.status-error {
  background: #e74c3c;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}