/**
 * ZZERSS BET - Arayüz Ayarları Paneli (Betovis tarzı)
 * Sağ alt köşede ayar butonu, tıklayınca panel açılır
 */
.settings-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a22, #14141c);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}
.settings-fab:hover {
  background: linear-gradient(135deg, #22222c, #1a1a22);
  color: #dc2626;
  border-color: rgba(220,38,38,0.3);
  transform: scale(1.05);
}
.settings-fab i { transition: transform 0.3s; }
.settings-fab.open i { transform: rotate(90deg); }

.settings-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.settings-panel-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.settings-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #16161d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  overflow: hidden;
}
.settings-panel.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-panel-header h3 i { color: #dc2626; }
.settings-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.settings-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.settings-panel-body {
  padding: 16px 20px 20px;
}
.settings-group {
  margin-bottom: 20px;
}
.settings-group:last-child { margin-bottom: 0; }
.settings-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 10px;
}
.settings-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-option {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-option:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.settings-option.active {
  background: rgba(220,38,38,0.2);
  border-color: rgba(220,38,38,0.5);
  color: #fff;
}

/* Açık tema */
body.theme-light {
  background: #f5f5f7 !important;
  color: #1a1a1a !important;
}
body.theme-light .sidebar,
body.theme-light .top-header,
body.theme-light .top-header-injected {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
}
body.theme-light .sidebar .nav-link { color: #4b5563 !important; }
body.theme-light .sidebar .nav-link:hover { color: #1a1a1a !important; background: rgba(0,0,0,0.05) !important; }
body.theme-light .settings-panel,
body.theme-light .settings-fab {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
  color: #4b5563 !important;
}
body.theme-light .settings-fab:hover { color: #dc2626 !important; }
body.theme-light .settings-option { color: #4b5563 !important; background: rgba(0,0,0,0.03) !important; }
body.theme-light .settings-option:hover { background: rgba(0,0,0,0.06) !important; color: #1a1a1a !important; }
body.theme-light .settings-option.active { background: rgba(220,38,38,0.15) !important; color: #b91c1c !important; }
body.theme-light .content-wrapper,
body.theme-light [class*="content-wrapper"] { background: #f5f5f7 !important; }
body.theme-light .auth-card,
body.theme-light .profile-card,
body.theme-light .deposit-card,
body.theme-light .withdraw-card,
body.theme-light .pro-card {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
}
body.theme-light .profile-link,
body.theme-light .auth-link { color: #dc2626 !important; }
body.theme-light .profile-link:hover,
body.theme-light .auth-link:hover { color: #b91c1c !important; }

/* Font boyutu */
body.font-small { font-size: 14px; }
body.font-large { font-size: 18px; }
body.font-large .sidebar .nav-link { font-size: 0.95rem !important; }

/* Sidebar dar mod */
body.sidebar-narrow .sidebar { width: 72px !important; min-width: 72px !important; max-width: 72px !important; }
body.sidebar-narrow .sidebar .nav-link { font-size: 0 !important; justify-content: center !important; padding: 12px !important; }
body.sidebar-narrow .sidebar .nav-link > i { font-size: 1.1rem !important; }
body.sidebar-narrow .sidebar .nav-link > .nav-icon-777 { font-size: 1rem !important; display: inline-block !important; }
body.sidebar-narrow .sidebar .nav-link .nav-badge { display: none !important; }
body.sidebar-narrow .sidebar-brand span { display: none !important; }
body.sidebar-narrow .main-content,
body.sidebar-narrow [class*="main-content"]:not(.admin-main) { margin-left: 72px !important; }

@media (max-width: 576px) {
  .settings-fab { bottom: 16px; right: 16px; width: 44px; height: 44px; }
  .settings-panel { bottom: 72px; right: 16px; left: 16px; width: auto; }
}
