/* ===== SIMULTER APP (index.html) TEMA OVERRIDE ===== */
/* Mevcut uygulamanın dark/light tema desteği için CSS variable override */

/* Ana uygulama font */
body {
  font-family: var(--font-family, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

/* Light tema override for index.html */
[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Genel arka plan */
[data-theme="light"] #mainApp,
[data-theme="light"] .main-app {
  background: var(--bg-primary);
}

/* Header / toolbar alanları */
[data-theme="light"] .mode-toolbar,
[data-theme="light"] .sim-toolbar {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

/* Kartlar */
[data-theme="light"] .sim-card,
[data-theme="light"] .join-card {
  background: var(--surface-card);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-sm);
}

/* Metin renkleri */
[data-theme="light"] .sim-card h2,
[data-theme="light"] .sim-card h3,
[data-theme="light"] .join-card h2 {
  color: var(--text-primary);
}

[data-theme="light"] .sim-card p,
[data-theme="light"] .sim-card label {
  color: var(--text-secondary);
}

/* Input'lar */
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
  background: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
}

/* App theme toggle button (index.html'de kullanılacak) */
.app-theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.app-theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-active);
}

/* Dashboard linki butonu (index.html'de) */
.app-dashboard-link {
  position: fixed;
  top: 12px;
  right: 56px;
  z-index: 9999;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-tertiary, #27272a);
  border: 1px solid var(--border-primary, rgba(255,255,255,0.1));
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-family, inherit);
}

.app-dashboard-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}
