/* ==========================================================================
   [653] GLOBAL GECE / GÜNDÜZ TEMA MOTORU (☀️ GÜNDÜZ & 🌙 GECE TAM UYUM CSS)
   Tüm sayfalar (/real.html, /, /panel, /merkez/*, /providers) ile %100 uyumlu.
   Yazılar, kartlar, tablolar, inputlar ve logolar yüksek kontrastla adapte olur.
   ========================================================================== */

/* Tema Geçiş Butonu (Her iki modda da kristal netliğinde görünür) */
.srp-theme-toggle-653 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  user-select: none !important;
  text-decoration: none !important;
}

.srp-theme-toggle-653:hover {
  transform: translateY(-1px) !important;
}

.srp-theme-toggle-653:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Gece modundayken buton görünümü (Gündüze geçmeyi davet eden sıcak altın/güneş rozeti) */
html:not([data-theme="light"]) .srp-theme-toggle-653 {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #fde047 !important;
  border: 1.5px solid rgba(251, 191, 36, 0.65) !important;
  box-shadow: 0 3px 12px rgba(251, 191, 36, 0.18) !important;
}

html:not([data-theme="light"]) .srp-theme-toggle-653:hover {
  border-color: #fde047 !important;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.32) !important;
}

/* Gündüz modundayken buton görünümü (Geceye geçmeyi sağlayan kraliyet lacivert rozeti) */
html[data-theme="light"] .srp-theme-toggle-653 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fde047 !important;
  border: 1.5px solid #d97706 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .srp-theme-toggle-653:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.26) !important;
}

/* ==========================================================================
   ☀️ GÜNDÜZ MODU (html[data-theme="light"]) — DEĞİŞKENLER & GENEL YÜZEYLER
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light !important;
  /* real.html değişkenleri */
  --bg: #f1f5f9 !important;
  --panel: #ffffff !important;
  --panel2: #f8fafc !important;
  --panel3: #e2e8f0 !important;
  --line: #cbd5e1 !important;
  --text: #0f172a !important;
  --mut: #475569 !important;
  --acc: #2563eb !important;
  --acc-hover: #1d4ed8 !important;
  --ok: #059669 !important;
  --warn: #d97706 !important;
  --bad: #dc2626 !important;
  --purple: #7c3aed !important;

  /* index.html değişkenleri */
  --bg-deep: #f1f5f9 !important;

  /* panel.html değişkenleri */
  --bg-root: #f1f5f9 !important;
  --bg-sidebar: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #f8fafc !important;
  --bg-input: #ffffff !important;
  --border: #cbd5e1 !important;
  --border-strong: rgba(5, 150, 105, 0.45) !important;
  --emerald: #059669 !important;
  --emerald-dim: rgba(5, 150, 105, 0.12) !important;
  --cyan: #0284c7 !important;
  --fuchsia: #a21caf !important;
  --amber: #b45309 !important;
  --danger: #dc2626 !important;
  --text-main: #0f172a !important;
  --text-muted: #475569 !important;
  --text-soft: #64748b !important;

  /* /merkez (652) değişkenleri */
  --surface: #ffffff !important;
  --surface2: #f1f5f9 !important;
  --muted: #475569 !important;
  --sky: #0284c7 !important;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background-color: #f1f5f9 !important;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(5, 150, 105, 0.06) 0%, transparent 40%) !important;
  color: #0f172a !important;
}

/* ==========================================================================
   👑 LOGO & MARKA BAŞLIĞI GÜNDÜZ UYUMU (ALTIN LOGO ASLA BEYAZDA KAYBOLMAZ!)
   ========================================================================== */
html[data-theme="light"] .organik-logo-capsule,
html[data-theme="light"] .m652-logo {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1.5px solid #d97706 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .organik-logo-img {
  filter: drop-shadow(0 1px 4px rgba(251, 191, 36, 0.45)) !important;
}

html[data-theme="light"] .organik-gold-title {
  background: linear-gradient(90deg, #0f172a 0%, #b45309 38%, #92400e 65%, #0f172a 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}

html[data-theme="light"] .m652-brand-title,
html[data-theme="light"] .brand-title,
html[data-theme="light"] .topbar-title,
html[data-theme="light"] .page-h1 {
  color: #0f172a !important;
}

html[data-theme="light"] .shimmer-text {
  background: linear-gradient(90deg, #0f172a 0%, #0369a1 32%, #047857 65%, #b45309 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .brand-ring::after {
  background: #ffffff !important;
}

/* ==========================================================================
   ÜST BARLAR (HEADER) & YAN MENÜLER (SIDEBAR)
   ========================================================================== */
html[data-theme="light"] header,
html[data-theme="light"] .glass-nav,
html[data-theme="light"] .m652-topbar,
html[data-theme="light"] .topbar,
html[data-theme="light"] #standalone-back-bar-652 {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .m652-subbar {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #sidebar-nav,
html[data-theme="light"] .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #cbd5e1 !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .sidebar-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] nav#tabs button,
html[data-theme="light"] nav#tabs a,
html[data-theme="light"] .sidebar .nav-btn,
html[data-theme="light"] .m652-nav-pill,
html[data-theme="light"] .m652-tab-chip {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] nav#tabs button:hover,
html[data-theme="light"] nav#tabs a:hover,
html[data-theme="light"] .sidebar .nav-btn:hover,
html[data-theme="light"] .m652-nav-pill:hover,
html[data-theme="light"] .m652-tab-chip:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

html[data-theme="light"] nav#tabs button.active {
  background: linear-gradient(135deg, #2563eb 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

html[data-theme="light"] nav#tabs button.active span {
  color: #ffffff !important;
}

html[data-theme="light"] .sidebar .nav-btn.active,
html[data-theme="light"] .m652-nav-pill.active,
html[data-theme="light"] .m652-tab-chip.active {
  background: rgba(5, 150, 105, 0.14) !important;
  color: #047857 !important;
  border-color: #059669 !important;
}

/* ==========================================================================
   KARTLAR, TABLOLAR, FORM ELEMANLARI & KONSOL KUTULARI
   ========================================================================== */
html[data-theme="light"] .card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .imperial-card,
html[data-theme="light"] .serplify-hero-aura,
html[data-theme="light"] .hub652-hero,
html[data-theme="light"] .hub652-kpi,
html[data-theme="light"] .hub652-card,
html[data-theme="light"] .hub652-toolbar,
html[data-theme="light"] .m652-hero,
html[data-theme="light"] .m652-card,
html[data-theme="light"] .m652-kpi,
html[data-theme="light"] .panel-box,
html[data-theme="light"] .prj-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .hero,
html[data-theme="light"] .modal-box,
html[data-theme="light"] #real-mobile-bottom-nav,
html[data-theme="light"] #index-mobile-bottom-nav,
html[data-theme="light"] #customer-mobile-bottom-bar {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .hub652-fpill {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .hub652-fpill.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .hub652-btn-ghost {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .hub652-btn-ghost:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

html[data-theme="light"] table {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] th,
html[data-theme="light"] .m652-table th,
html[data-theme="light"] .data-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] td,
html[data-theme="light"] .m652-table td,
html[data-theme="light"] .data-table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

html[data-theme="light"] tr:hover td {
  background: #f8fafc !important;
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .m652-inp,
html[data-theme="light"] .hub652-search,
html[data-theme="light"] .form-inp,
html[data-theme="light"] .form-sel,
html[data-theme="light"] .form-ta,
html[data-theme="light"] .search-inp {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  color: #0f172a !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] pre,
html[data-theme="light"] code,
html[data-theme="light"] .out,
html[data-theme="light"] .m652-out,
html[data-theme="light"] .code-box,
html[data-theme="light"] .json-viewer {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   TAILWIND KARANLIK SINIFLARININ GÜNDÜZ MODU DÖNÜŞÜMÜ (index.html & real.html)
   ========================================================================== */
html[data-theme="light"] .bg-slate-950,
html[data-theme="light"] .bg-slate-900,
html[data-theme="light"] .bg-slate-900\/95,
html[data-theme="light"] .bg-slate-900\/90,
html[data-theme="light"] .bg-slate-900\/80,
html[data-theme="light"] .bg-slate-900\/70,
html[data-theme="light"] .bg-slate-900\/60,
html[data-theme="light"] .bg-slate-900\/50,
html[data-theme="light"] .bg-slate-950\/90,
html[data-theme="light"] .bg-slate-950\/80,
html[data-theme="light"] .bg-slate-950\/70,
html[data-theme="light"] .bg-slate-950\/60,
html[data-theme="light"] .bg-gray-950,
html[data-theme="light"] .bg-gray-900 {
  background-color: #ffffff !important;
}

html[data-theme="light"] .bg-slate-800,
html[data-theme="light"] .bg-slate-800\/80,
html[data-theme="light"] .bg-slate-800\/60,
html[data-theme="light"] .bg-slate-800\/50,
html[data-theme="light"] .bg-black\/30,
html[data-theme="light"] .bg-black\/40,
html[data-theme="light"] .bg-black\/50,
html[data-theme="light"] .bg-black\/60 {
  background-color: #f8fafc !important;
}

html[data-theme="light"] [class*="border-slate-8"],
html[data-theme="light"] [class*="border-slate-7"],
html[data-theme="light"] [class*="border-white/"] {
  border-color: #cbd5e1 !important;
}

/* Metin Kontrastları (Renkli/Koyu Butonların İçindeki Beyaz Yazıları Korur!) */
html[data-theme="light"] .text-white:not(button):not(.btn):not([class*="bg-emerald-6"]):not([class*="bg-emerald-5"]):not([class*="bg-rose-6"]):not([class*="bg-red-6"]):not([class*="bg-indigo-6"]):not([class*="bg-blue-6"]):not([class*="bg-purple-6"]):not([class*="bg-violet-6"]):not([class*="from-emerald-"]):not([class*="from-indigo-"]):not([class*="from-rose-"]):not([class*="from-blue-"]),
html[data-theme="light"] .text-slate-50,
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-gray-100,
html[data-theme="light"] .text-gray-200 {
  color: #0f172a !important;
}

html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-gray-400 {
  color: #475569 !important;
}

html[data-theme="light"] .text-amber-100,
html[data-theme="light"] .text-amber-100\/80,
html[data-theme="light"] .text-amber-200,
html[data-theme="light"] .text-amber-300,
html[data-theme="light"] .text-amber-400,
html[data-theme="light"] .text-yellow-200,
html[data-theme="light"] .text-yellow-300,
html[data-theme="light"] .text-yellow-400 {
  color: #b45309 !important;
}

html[data-theme="light"] .text-emerald-200,
html[data-theme="light"] .text-emerald-300,
html[data-theme="light"] .text-emerald-400,
html[data-theme="light"] .text-green-300,
html[data-theme="light"] .text-green-400 {
  color: #047857 !important;
}

html[data-theme="light"] .text-cyan-200,
html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-400,
html[data-theme="light"] .text-sky-200,
html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-sky-400 {
  color: #0369a1 !important;
}

html[data-theme="light"] .text-indigo-200,
html[data-theme="light"] .text-indigo-300,
html[data-theme="light"] .text-purple-200,
html[data-theme="light"] .text-purple-300,
html[data-theme="light"] .text-violet-300,
html[data-theme="light"] .text-fuchsia-300 {
  color: #4338ca !important;
}

html[data-theme="light"] .text-rose-200,
html[data-theme="light"] .text-rose-300,
html[data-theme="light"] .text-pink-300 {
  color: #be123c !important;
}

/* Üst menü nav-btn gündüz uyumu (index.html) */
html[data-theme="light"] #top-nav-toolbar .nav-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html[data-theme="light"] #top-nav-toolbar .nav-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #059669 100%) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

html[data-theme="light"] #top-nav-toolbar .nav-btn.active span {
  color: #ffffff !important;
}
