/* OnlineHızTesti Custom Modern Styles (Dark & Light Theme Support) */

.hidden {
  display: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Speedometer Gauge Styles */
.gauge-circle {
  transform-origin: center;
  transition: stroke-dashoffset 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: stroke-dashoffset;
}

/* Custom glow utility */
.glow-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.glow-purple {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

/* Custom Select Dropdown in Dark Mode */
#server-select option {
  background-color: #0c1017;
  color: #f1f5f9;
  padding: 8px;
}

/* Pulse animation for active card */
@keyframes activeCardPulse {
  0%, 100% { border-color: rgba(6, 182, 212, 0.4); }
  50% { border-color: rgba(6, 182, 212, 0.9); }
}

.card-active-download {
  animation: activeCardPulse 1.5s infinite;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

@keyframes activeUploadPulse {
  0%, 100% { border-color: rgba(168, 85, 247, 0.4); }
  50% { border-color: rgba(168, 85, 247, 0.9); }
}

.card-active-upload {
  animation: activeUploadPulse 1.5s infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

.animate-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   LIGHT THEME (AÇIK TEMA) OVERRIDES - html.light
   ========================================================================== */
html.light body,
html.light .bg-dark-950 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light header,
html.light .bg-\[\#0b0e14\] {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light footer {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .bg-dark-900,
html.light .bg-dark-900\/95,
html.light .bg-dark-900\/90,
html.light .bg-dark-900\/80,
html.light .bg-dark-900\/70,
html.light .bg-dark-900\/60,
html.light .bg-dark-900\/50,
html.light .bg-dark-900\/40 {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

html.light .bg-dark-950\/95,
html.light .bg-dark-950\/90,
html.light .bg-dark-950\/80,
html.light .bg-dark-950\/70,
html.light .bg-dark-950\/60,
html.light .bg-dark-950\/50 {
  background-color: #f8fafc !important;
}

html.light #login-modal,
html.light #server-modal,
html.light #tester-modal,
html.light #modal-server-picker,
html.light #modal-privacy-settings,
html.light #modal-ios-install {
  background-color: rgba(15, 23, 42, 0.45) !important;
}

html.light .bg-dark-850,
html.light .bg-dark-800,
html.light .bg-dark-800\/80,
html.light .bg-dark-800\/60 {
  background-color: #f1f5f9 !important;
}

html.light .hover\:bg-dark-850:hover,
html.light .hover\:bg-dark-800:hover,
html.light .hover\:bg-dark-700:hover,
html.light .hover\:bg-dark-950\/60:hover {
  background-color: #e2e8f0 !important;
}

html.light [class*="border-dark-"] {
  border-color: #e2e8f0 !important;
}

html.light [class*="divide-dark-"] > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

html.light .text-white,
html.light .text-slate-100,
html.light .text-slate-200 {
  color: #0f172a !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400,
html.light .text-slate-500 {
  color: #64748b !important;
}

html.light .text-cyan-400,
html.light .text-cyan-300 {
  color: #0284c7 !important;
}

html.light .text-purple-400,
html.light .text-purple-300 {
  color: #7c3aed !important;
}

html.light .text-emerald-400,
html.light .text-emerald-300 {
  color: #059669 !important;
}

html.light .text-amber-400,
html.light .text-amber-300 {
  color: #d97706 !important;
}

html.light .text-rose-400,
html.light .text-rose-300 {
  color: #e11d48 !important;
}

html.light [class*="bg-cyan-950"] {
  background-color: #e0f2fe !important;
  border-color: #bae6fd !important;
}

html.light [class*="bg-purple-950"] {
  background-color: #f3e8ff !important;
  border-color: #e9d5ff !important;
}

html.light [class*="bg-emerald-950"] {
  background-color: #d1fae5 !important;
  border-color: #a7f3d0 !important;
}

html.light [class*="bg-amber-950"] {
  background-color: #fef3c7 !important;
  border-color: #fde68a !important;
}

html.light [class*="bg-rose-950"] {
  background-color: #ffe4e6 !important;
  border-color: #fecdd3 !important;
}

html.light .from-white {
  --tw-gradient-from: #0f172a var(--tw-gradient-from-position) !important;
  --tw-gradient-Via: #1e293b !important;
  --tw-gradient-to: #0284c7 var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: #0f172a, #1e293b, #0284c7 !important;
}

/* Speedometer Background Track in Light Mode */
html.light svg circle[stroke="#161f30"] {
  stroke: #cbd5e1 !important;
}

/* Inputs & Selects in Light Mode */
html.light input:not([type="checkbox"]),
html.light select:not(#server-select),
html.light textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light #server-select option {
  background-color: #ffffff;
  color: #0f172a;
}

html.light #btn-start,
html.light #share-btn-x,
html.light #share-btn-x span,
html.light #share-btn-whatsapp,
html.light #share-btn-whatsapp span,
html.light #share-btn-fb,
html.light #share-btn-fb span {
  color: #ffffff !important;
}

html.light #tester-widget,
html.light .from-dark-900 {
  background-image: linear-gradient(to bottom, #ffffff, #f8fafc) !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
}

html.light .from-cyan-950\/60 {
  background-image: linear-gradient(to right, #e0f2fe, #dbeafe) !important;
  border-color: #bae6fd !important;
}

html.light .bg-black\/40,
html.light .bg-black\/50 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

