/* ==========================================================================
   FITPRO / GYMGYME — DİNAMİK ARAYÜZ TEMALARI (RENK PALETLERİ)
   ========================================================================== */

/* 1. OBSIDIAN AMBER (Varsayılan Koyu Tema) */
[data-theme="theme-obsidian"]:not([data-theme-mode="light"]):not(.light-theme), 
body:not([data-theme]):not([data-theme-mode="light"]):not(.light-theme) {
  --gym-bg: #0e0e11;
  --gym-surface: #151519;
  --gym-surface-light: #18181d;
  --gym-border: #232329;
  --gym-border-light: #2a2244;
  --gym-primary: #e06d2b;
  --gym-primary-hover: #c45a1e;
  --gym-accent-green: #34d399;
  --gym-header-bg: linear-gradient(90deg, #171128 0%, #1d1533 60%, #19122c 100%);
  --gym-primary-glow: rgba(224, 109, 43, 0.35);
}

/* 2. EMERALD FITNESS (Canlı Yeşil & Koyu Orman) */
[data-theme="theme-emerald"]:not([data-theme-mode="light"]):not(.light-theme) {
  --gym-bg: #0b130e;
  --gym-surface: #101c15;
  --gym-surface-light: #15241b;
  --gym-border: #1a3325;
  --gym-border-light: #224733;
  --gym-primary: #10b981;
  --gym-primary-hover: #059669;
  --gym-accent-green: #34d399;
  --gym-header-bg: linear-gradient(90deg, #0b1c13 0%, #0d281a 60%, #0c2016 100%);
  --gym-primary-glow: rgba(16, 185, 129, 0.35);
}

/* 3. CYBER ELECTRIC (Neon Mavi & Mor) */
[data-theme="theme-cyber"]:not([data-theme-mode="light"]):not(.light-theme) {
  --gym-bg: #090d16;
  --gym-surface: #101726;
  --gym-surface-light: #151f33;
  --gym-border: #1e2c47;
  --gym-border-light: #25395c;
  --gym-primary: #38bdf8;
  --gym-primary-hover: #0284c7;
  --gym-accent-green: #22d3ee;
  --gym-header-bg: linear-gradient(90deg, #0f172a 0%, #172554 60%, #1e1b4b 100%);
  --gym-primary-glow: rgba(56, 189, 248, 0.35);
}

/* 4. CRIMSON POWER (Motivasyon Kırmızısı) */
[data-theme="theme-crimson"]:not([data-theme-mode="light"]):not(.light-theme) {
  --gym-bg: #120909;
  --gym-surface: #1a0d0d;
  --gym-surface-light: #241313;
  --gym-border: #331919;
  --gym-border-light: #472222;
  --gym-primary: #ef4444;
  --gym-primary-hover: #dc2626;
  --gym-accent-green: #f59e0b;
  --gym-header-bg: linear-gradient(90deg, #240c0c 0%, #301010 60%, #1f0808 100%);
  --gym-primary-glow: rgba(239, 68, 68, 0.35);
}

/* 5. ROYAL GOLD VIP (Lüks Altın & Gece Mavisi) */
[data-theme="theme-gold"]:not([data-theme-mode="light"]):not(.light-theme) {
  --gym-bg: #0e0f14;
  --gym-surface: #171821;
  --gym-surface-light: #1f202b;
  --gym-border: #2e2f3d;
  --gym-border-light: #3d3014;
  --gym-primary: #f59e0b;
  --gym-primary-hover: #d97706;
  --gym-accent-green: #10b981;
  --gym-header-bg: linear-gradient(90deg, #1f1a10 0%, #2b2212 60%, #1a1710 100%);
  --gym-primary-glow: rgba(245, 158, 11, 0.35);
}

/* Tema Seçim Kartları */
.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.theme-card {
  border: 2px solid var(--gym-border);
  background: var(--gym-surface);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: var(--gym-primary);
  box-shadow: 0 4px 16px var(--gym-primary-glow);
}

.theme-card.active {
  border-color: var(--gym-primary);
  background: var(--gym-surface-light);
  box-shadow: 0 0 16px var(--gym-primary-glow);
}

.theme-preview-palette {
  display: flex;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-swatch {
  flex: 1;
  height: 100%;
}

/* ==========================================================================
   6. AYDINLIK MOD (LIGHT THEME OVERRIDES - GÖZ YORMAYAN DOĞAL SOFT TONLAR)
   ========================================================================== */
:root[data-theme-mode="light"],
html[data-theme-mode="light"],
body[data-theme-mode="light"],
body.light-theme,
[data-theme-mode="light"] {
  --gym-bg: #e9ecef !important;
  --gym-surface: #f6f8fa !important;
  --gym-surface-light: #eef2f5 !important;
  --gym-border: #cbd5e1 !important;
  --gym-border-light: #bfc9d4 !important;
  --gym-text-main: #0f172a !important;
  --gym-text-muted: #475569 !important;
  --gym-text-dim: #64748b !important;
  --gym-header-bg: #f1f4f8 !important;
  --gym-member-bg: #e9ecef !important;
  --gym-member-card: #f6f8fa !important;
  --gym-member-border: #cbd5e1 !important;
  --gym-member-border-subtle: #dde3ea !important;
  --gym-member-text: #0f172a !important;
  --gym-member-text-muted: #475569 !important;
  --gym-member-purple: #e9edf2 !important;
}

[data-theme-mode="light"] body,
body[data-theme-mode="light"],
body.light-theme {
  background-color: #e9ecef !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .gym-app-layout,
.light-theme .gym-app-layout {
  background-color: #e9ecef !important;
  color: #0f172a !important;
}

/* --- Giriş Ekranı (Login Screen) Aydınlık Mod --- */
[data-theme-mode="light"] .login-card,
.light-theme .login-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04) !important;
}

[data-theme-mode="light"] .card-title,
.light-theme .card-title {
  color: #0f172a !important;
}

[data-theme-mode="light"] .card-subtitle,
.light-theme .card-subtitle {
  color: #64748b !important;
}

[data-theme-mode="light"] .login-card .form-label,
.light-theme .login-card .form-label {
  color: #1e293b !important;
}

[data-theme-mode="light"] .login-card .input-wrapper,
.light-theme .login-card .input-wrapper {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .login-card .input-wrapper:focus-within,
.light-theme .login-card .input-wrapper:focus-within {
  background: #ffffff !important;
  border-color: #e06d2b !important;
  box-shadow: 0 0 0 3px rgba(224, 109, 43, 0.15) !important;
}

[data-theme-mode="light"] .login-card .form-input,
.light-theme .login-card .form-input {
  color: #0f172a !important;
}

[data-theme-mode="light"] .login-card .form-input::placeholder,
.light-theme .login-card .form-input::placeholder {
  color: #94a3b8 !important;
}

[data-theme-mode="light"] .login-card .checkbox-text,
.light-theme .login-card .checkbox-text {
  color: #334155 !important;
}

/* --- Üst Başlık & Araç Çubuğu (Top Header) --- */
[data-theme-mode="light"] .gym-top-header {
  background: #f1f4f8 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .header-center-brand {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .header-tenant-name {
  color: #0f172a;
}

[data-theme-mode="light"] .header-branch-name {
  color: #0284c7;
}

[data-theme-mode="light"] .gate-label {
  color: #475569;
}

[data-theme-mode="light"] .gate-btn-group {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .btn-gate-mini {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .btn-gate-mini:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme-mode="light"] .pill-branch {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .pill-branch:hover {
  background: #d5dde6;
}

[data-theme-mode="light"] .tool-icon-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme-mode="light"] .tool-icon-btn:hover {
  background: #d5dde6;
  color: #0f172a;
}

[data-theme-mode="light"] .mode-toggle-pill {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .mode-option {
  color: #475569;
}

[data-theme-mode="light"] .mode-option.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme-mode="light"] .user-search-input {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme-mode="light"] .user-search-input:focus {
  background: #ffffff;
  border-color: var(--gym-primary);
}

[data-theme-mode="light"] .user-search-submit {
  color: #475569;
}

[data-theme-mode="light"] .user-search-submit:hover {
  color: #0f172a;
}

[data-theme-mode="light"] .profile-avatar-pill {
  background: #d8e0e8;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme-mode="light"] .header-version-tag {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}

/* --- Sol İnce Menü (Slim Sidebar) --- */
[data-theme-mode="light"] .gym-slim-sidebar {
  background: #f1f4f8 !important;
  border-right: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .sidebar-toggle-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme-mode="light"] .sidebar-toggle-btn:hover {
  background: #d5dde6;
  color: #0f172a;
}

[data-theme-mode="light"] .slim-nav-item {
  color: #475569;
}

[data-theme-mode="light"] .slim-nav-item:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme-mode="light"] .slim-nav-item.active {
  background: rgba(224, 109, 43, 0.15);
  border-color: rgba(224, 109, 43, 0.3);
  color: var(--gym-primary);
}

[data-theme-mode="light"] .brand-name-text {
  color: #0f172a;
}

/* --- Ana Panel Karşılama ve Kısayollar (Dashboard Hero & Shortcuts) --- */
[data-theme-mode="light"] .gym-main-wrapper,
[data-theme-mode="light"] .gym-content-columns,
[data-theme-mode="light"] .gym-center-stage {
  background-color: #e9ecef !important;
}

[data-theme-mode="light"] .gym-hero-banner {
  background: linear-gradient(135deg, #e2e7ee 0%, #edf1f6 50%, #dde3eb 100%) !important;
  border: 1px solid #cbd2dc !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme-mode="light"] .hero-time-clock {
  color: #0f172a !important;
}

[data-theme-mode="light"] .hero-greeting-title {
  color: #0f172a !important;
}

[data-theme-mode="light"] .hero-greeting-sub {
  color: #475569 !important;
}

[data-theme-mode="light"] .hero-badge {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme-mode="light"] .turnstile-scene-container svg line {
  stroke: #cbd5e1 !important;
}

[data-theme-mode="light"] .turnstile-scene-container svg rect[fill="#3b206f"] {
  fill: #d8e0e8 !important;
  stroke: #cbd5e1 !important;
}

[data-theme-mode="light"] .turnstile-scene-container svg rect[fill="#2d1754"] {
  fill: #e5ebf1 !important;
  stroke: #cbd5e1 !important;
}

[data-theme-mode="light"] .spot-1,
[data-theme-mode="light"] .spot-2 {
  opacity: 0.1;
}

[data-theme-mode="light"] .gym-shortcuts-section {
  background: #f6f8fa !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme-mode="light"] .shortcuts-toolbar {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme-mode="light"] .shortcuts-search-wrap {
  background: #e9edf2 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme-mode="light"] .shortcuts-filter-input {
  color: #0f172a !important;
}

[data-theme-mode="light"] .shortcuts-filter-input::placeholder {
  color: #64748b !important;
}

[data-theme-mode="light"] .btn-edit-shortcuts {
  background: #e9edf2 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme-mode="light"] .btn-edit-shortcuts:hover {
  background: #dfe5ec !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .shortcut-tile {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .shortcut-tile:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme-mode="light"] .tile-title-text {
  color: #334155 !important;
}

[data-theme-mode="light"] .shortcut-tile:hover .tile-title-text {
  color: #0f172a !important;
}

/* --- Sağ Kenar Çubuğu & Son Geçişler (Right Sidebar & Recent Passes) --- */
[data-theme-mode="light"] .gym-right-sidebar {
  background: #f1f4f8 !important;
  border-left: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .sidebar-section-title {
  color: #0f172a !important;
}

[data-theme-mode="light"] .refresh-icon-btn,
[data-theme-mode="light"] .btn-close-drawer {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme-mode="light"] .refresh-icon-btn:hover,
[data-theme-mode="light"] .btn-close-drawer:hover {
  background: #d5dde6 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .facility-occupancy-card {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .occupancy-number {
  color: #0f172a !important;
}

[data-theme-mode="light"] .occupancy-label {
  color: #475569 !important;
}

[data-theme-mode="light"] .gender-bar-container {
  background: #cbd5e1 !important;
}

[data-theme-mode="light"] .gender-legend-row {
  color: #475569 !important;
}

[data-theme-mode="light"] .pass-card {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .pass-card:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme-mode="light"] .pass-member-name {
  color: #0f172a !important;
}

[data-theme-mode="light"] .pass-time {
  color: #64748b !important;
}

[data-theme-mode="light"] .pass-meta-row {
  color: #64748b !important;
}

[data-theme-mode="light"] .pass-gate-tag {
  color: #334155 !important;
}

/* --- Kullanıcı Arama Açılır Menüsü --- */
[data-theme-mode="light"] .user-search-dropdown-menu {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

[data-theme-mode="light"] .search-results-header {
  background: #edf1f6 !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .search-result-item:hover {
  background: #e5ebf1 !important;
}

[data-theme-mode="light"] .search-item-name {
  color: #0f172a !important;
}

[data-theme-mode="light"] .search-item-sub {
  color: #475569 !important;
}

/* --- Filtre ve Arama Panelleri --- */
[data-theme-mode="light"] .customer-filter-panel {
  background: #f6f8fa;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme-mode="light"] .customer-search-input-group {
  background: #e9edf2 !important;
  border-color: #cbd5e1 !important;
  color: #475569;
}

[data-theme-mode="light"] .customer-search-input-group input,
[data-theme-mode="light"] .customer-search-input-group .filter-search-box,
[data-theme-mode="light"] .filter-search-box {
  color: #0f172a !important;
}

[data-theme-mode="light"] .customer-search-input-group input::placeholder,
[data-theme-mode="light"] .customer-search-input-group .filter-search-box::placeholder,
[data-theme-mode="light"] .filter-search-box::placeholder {
  color: #64748b !important;
}

[data-theme-mode="light"] .filter-select-dropdown {
  background: #e9edf2 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .filter-select-dropdown option {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme-mode="light"] .btn-refresh-table {
  background: #e9edf2;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme-mode="light"] .btn-refresh-table:hover {
  background: #dfe5ec;
  color: #0f172a;
}

[data-theme-mode="light"] .btn-back-dashboard {
  color: #475569;
}

[data-theme-mode="light"] .btn-back-dashboard:hover {
  color: #0f172a;
}

[data-theme-mode="light"] .customer-page-title {
  color: #0f172a;
}

/* --- Tablolar ve Veri Listeleri --- */
[data-theme-mode="light"] .customer-table-wrapper {
  background: #f6f8fa;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme-mode="light"] .customer-table-stats-bar {
  background: #edf1f6;
  border-bottom: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme-mode="light"] .customer-stats-label strong {
  color: #0f172a;
}

[data-theme-mode="light"] .customer-table thead th {
  background: #e5ebf1;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

[data-theme-mode="light"] .customer-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

[data-theme-mode="light"] .customer-table tbody tr:hover {
  background: #edf2f7;
}

[data-theme-mode="light"] .customer-name-text {
  color: #0f172a !important;
}

[data-theme-mode="light"] .customer-sub-text {
  color: #475569;
}

[data-theme-mode="light"] .customer-phone {
  color: #1e293b;
}

[data-theme-mode="light"] .customer-email {
  color: #475569;
}

[data-theme-mode="light"] .customer-card-badge,
[data-theme-mode="light"] .branch-badge {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

[data-theme-mode="light"] .btn-row-action {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme-mode="light"] .btn-row-action:hover {
  background: #d1d9e2;
  color: #0f172a;
}

[data-theme-mode="light"] .action-icon-btn {
  background: #e9edf2;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme-mode="light"] .action-icon-btn:hover {
  background: #dfe5ec;
  color: #0f172a;
}

/* --- Modallar ve Formlar (Modals & Dialogs) --- */
[data-theme-mode="light"] .action-modal-overlay,
.light-theme .action-modal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
}

[data-theme-mode="light"] .action-modal-card,
.light-theme .action-modal-card,
[data-theme-mode="light"] .quick-register-modal-card,
.light-theme .quick-register-modal-card,
[data-theme-mode="light"] .session-sale-modal-card,
.light-theme .session-sale-modal-card,
[data-theme-mode="light"] .qr-success-card,
.light-theme .qr-success-card {
  background: #f6f8fa !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-card-header,
.light-theme .modal-card-header,
[data-theme-mode="light"] .quick-reg-header,
.light-theme .quick-reg-header {
  background: #edf1f6 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .modal-title-text,
.light-theme .modal-title-text {
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-close-btn,
.light-theme .modal-close-btn {
  color: #64748b !important;
}

[data-theme-mode="light"] .modal-close-btn:hover,
.light-theme .modal-close-btn:hover {
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-card-body,
.light-theme .modal-card-body,
[data-theme-mode="light"] .quick-reg-body,
.light-theme .quick-reg-body {
  background: #f6f8fa !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-intro-text,
.light-theme .modal-intro-text {
  color: #475569 !important;
}

[data-theme-mode="light"] .modal-placeholder-box h4,
.light-theme .modal-placeholder-box h4 {
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-placeholder-box p,
.light-theme .modal-placeholder-box p {
  color: #475569 !important;
}

[data-theme-mode="light"] .placeholder-icon,
.light-theme .placeholder-icon {
  background: #e2e8f0 !important;
  color: var(--gym-primary) !important;
}

[data-theme-mode="light"] .info-pill,
.light-theme .info-pill {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .modal-form-label,
.light-theme .modal-form-label,
[data-theme-mode="light"] .form-label-compact,
.light-theme .form-label-compact,
[data-theme-mode="light"] .form-field-label,
.light-theme .form-field-label {
  color: #334155 !important;
}

[data-theme-mode="light"] .label-hint,
.light-theme .label-hint {
  color: #64748b !important;
}

/* Modal Form Alanları ve İnputlar (Gündüz Modu) */
[data-theme-mode="light"] .form-field-input,
.light-theme .form-field-input,
[data-theme-mode="light"] .form-input-compact,
.light-theme .form-input-compact,
[data-theme-mode="light"] .form-select-compact,
.light-theme .form-select-compact,
[data-theme-mode="light"] .form-control-compact,
.light-theme .form-control-compact,
[data-theme-mode="light"] .modal-form-control,
.light-theme .modal-form-control,
[data-theme-mode="light"] .form-input,
.light-theme .form-input,
[data-theme-mode="light"] .form-select,
.light-theme .form-select,
[data-theme-mode="light"] .reg-input,
.light-theme .reg-input,
[data-theme-mode="light"] .reg-select,
.light-theme .reg-select,
[data-theme-mode="light"] .quick-reg-textarea,
.light-theme .quick-reg-textarea,
[data-theme-mode="light"] .action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.light-theme .action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
[data-theme-mode="light"] .action-modal-card select,
.light-theme .action-modal-card select,
[data-theme-mode="light"] .action-modal-card textarea,
.light-theme .action-modal-card textarea,
[data-theme-mode="light"] .quick-register-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.light-theme .quick-register-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
[data-theme-mode="light"] .quick-register-modal-card select,
.light-theme .quick-register-modal-card select,
[data-theme-mode="light"] .quick-register-modal-card textarea,
.light-theme .quick-register-modal-card textarea {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  color-scheme: light !important;
  box-shadow: none !important;
}

[data-theme-mode="light"] .form-field-input::placeholder,
.light-theme .form-field-input::placeholder,
[data-theme-mode="light"] .form-input-compact::placeholder,
.light-theme .form-input-compact::placeholder,
[data-theme-mode="light"] .action-modal-card input::placeholder,
.light-theme .action-modal-card input::placeholder,
[data-theme-mode="light"] .action-modal-card textarea::placeholder,
.light-theme .action-modal-card textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme-mode="light"] .form-field-input:focus,
.light-theme .form-field-input:focus,
[data-theme-mode="light"] .form-input-compact:focus,
.light-theme .form-input-compact:focus,
[data-theme-mode="light"] .form-select-compact:focus,
.light-theme .form-select-compact:focus,
[data-theme-mode="light"] .form-control-compact:focus,
.light-theme .form-control-compact:focus,
[data-theme-mode="light"] .action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.light-theme .action-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
[data-theme-mode="light"] .action-modal-card select:focus,
.light-theme .action-modal-card select:focus,
[data-theme-mode="light"] .action-modal-card textarea:focus,
.light-theme .action-modal-card textarea:focus {
  border-color: var(--gym-primary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(224, 109, 43, 0.18) !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .action-modal-card select option,
.light-theme .action-modal-card select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Modal Checkbox & Radio */
[data-theme-mode="light"] .action-modal-card input[type="checkbox"],
.light-theme .action-modal-card input[type="checkbox"],
[data-theme-mode="light"] .modal-checkbox,
.light-theme .modal-checkbox {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color-scheme: light !important;
}

[data-theme-mode="light"] .action-modal-card input[type="checkbox"]:checked,
.light-theme .action-modal-card input[type="checkbox"]:checked,
[data-theme-mode="light"] .modal-checkbox:checked,
.light-theme .modal-checkbox:checked {
  background-color: var(--gym-primary) !important;
  border-color: var(--gym-primary) !important;
}

/* Modal İçi Genel Bileşenler (Kutular, Kartlar, Tablolar) */
[data-theme-mode="light"] .modal-box-card,
.light-theme .modal-box-card,
[data-theme-mode="light"] .modal-inner-box,
.light-theme .modal-inner-box {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .modal-table-wrap,
.light-theme .modal-table-wrap {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .modal-table-wrap table thead tr,
.light-theme .modal-table-wrap table thead tr {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme-mode="light"] .modal-table-wrap table tbody tr,
.light-theme .modal-table-wrap table tbody tr {
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme-mode="light"] .modal-table-wrap table tbody tr:hover,
.light-theme .modal-table-wrap table tbody tr:hover {
  background: #f1f5f9 !important;
}

[data-theme-mode="light"] .modal-table-wrap table tbody tr td,
.light-theme .modal-table-wrap table tbody tr td {
  color: #1e293b !important;
}

[data-theme-mode="light"] .modal-empty-state,
.light-theme .modal-empty-state {
  background: #edf1f6 !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
}

[data-theme-mode="light"] .package-type-radio-card,
.light-theme .package-type-radio-card {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .package-type-radio-card:hover,
.light-theme .package-type-radio-card:hover {
  background: #e2e8f0 !important;
}

[data-theme-mode="light"] .package-type-radio-card strong,
.light-theme .package-type-radio-card strong {
  color: #0f172a !important;
}

[data-theme-mode="light"] .package-session-fields-box,
.light-theme .package-session-fields-box,
[data-theme-mode="light"] .package-freeze-block-box,
.light-theme .package-freeze-block-box,
[data-theme-mode="light"] #session-package-fields,
.light-theme #session-package-fields,
[data-theme-mode="light"] #subscription-freeze-block,
.light-theme #subscription-freeze-block {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .staff-branch-chip,
.light-theme .staff-branch-chip {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .staff-branch-chip:hover,
.light-theme .staff-branch-chip:hover {
  background: #d5dde6 !important;
}

[data-theme-mode="light"] .qr-details-strip,
.light-theme .qr-details-strip {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .qr-details-strip strong,
.light-theme .qr-details-strip strong {
  color: #0f172a !important;
}

[data-theme-mode="light"] .qr-member-name,
.light-theme .qr-member-name {
  color: #0f172a !important;
}

[data-theme-mode="light"] .note-card,
.light-theme .note-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .note-card p,
.light-theme .note-card p {
  color: #1e293b !important;
}

[data-theme-mode="light"] .role-item-row,
.light-theme .role-item-row {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .role-item-row .role-title-text,
.light-theme .role-item-row .role-title-text {
  color: #0f172a !important;
}

[data-theme-mode="light"] .freeze-tag-pill,
.light-theme .freeze-tag-pill {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

/* Seans Satış ve Eğitmen Takvim Modalı (Gündüz Modu) */
[data-theme-mode="light"] .session-form-sidebar,
.light-theme .session-form-sidebar,
[data-theme-mode="light"] .session-calendar-panel,
.light-theme .session-calendar-panel {
  background: #f6f8fa !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .cal-top-bar,
.light-theme .cal-top-bar {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .cal-nav-btn-group,
.light-theme .cal-nav-btn-group {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .btn-cal-step,
.light-theme .btn-cal-step {
  color: #475569 !important;
}

[data-theme-mode="light"] .btn-cal-step:hover,
.light-theme .btn-cal-step:hover {
  color: #0f172a !important;
  background: #d5dde6 !important;
}

[data-theme-mode="light"] .cal-title-range,
.light-theme .cal-title-range {
  color: #0f172a !important;
}

[data-theme-mode="light"] .cal-trainer-name,
.light-theme .cal-trainer-name {
  color: #475569 !important;
}

[data-theme-mode="light"] .cal-picker-pill,
.light-theme .cal-picker-pill {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .cal-picker-label,
.light-theme .cal-picker-label {
  color: #475569 !important;
}

[data-theme-mode="light"] .cal-picker-date-input,
.light-theme .cal-picker-date-input {
  color: #0284c7 !important;
  color-scheme: light !important;
}

[data-theme-mode="light"] .cal-sub-bar,
.light-theme .cal-sub-bar {
  background: #edf1f6 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .calendar-timetable-wrapper,
.light-theme .calendar-timetable-wrapper {
  background: #e5ebf1 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .cal-time-col-header,
.light-theme .cal-time-col-header {
  border-bottom: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme-mode="light"] .cal-time-cell,
.light-theme .cal-time-cell {
  color: #475569 !important;
}

[data-theme-mode="light"] .cal-day-col,
.light-theme .cal-day-col {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .cal-day-col.is-today,
.light-theme .cal-day-col.is-today {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
}

[data-theme-mode="light"] .cal-day-header,
.light-theme .cal-day-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme-mode="light"] .cal-day-name,
.light-theme .cal-day-name {
  color: #64748b !important;
}

[data-theme-mode="light"] .cal-day-badge,
.light-theme .cal-day-badge {
  color: #0f172a !important;
}

[data-theme-mode="light"] .calendar-slot.slot-booked,
.light-theme .calendar-slot.slot-booked {
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
}

[data-theme-mode="light"] .calendar-slot.slot-available,
.light-theme .calendar-slot.slot-available {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  color: #15803d !important;
}

[data-theme-mode="light"] .calendar-slot.slot-available:hover,
.light-theme .calendar-slot.slot-available:hover {
  background: #bbf7d0 !important;
  border-color: #22c55e !important;
  color: #14532d !important;
}

[data-theme-mode="light"] .selected-slot-chip,
.light-theme .selected-slot-chip {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
}

[data-theme-mode="light"] .chip-remove-btn,
.light-theme .chip-remove-btn {
  color: #64748b !important;
}

[data-theme-mode="light"] .chip-remove-btn:hover,
.light-theme .chip-remove-btn:hover {
  color: #dc2626 !important;
}

/* Fallback: Inline stilli elementler için destek */
[data-theme-mode="light"] .action-modal-card [style*="background: #121217"],
.light-theme .action-modal-card [style*="background: #121217"],
[data-theme-mode="light"] .action-modal-card [style*="background: #12111d"],
.light-theme .action-modal-card [style*="background: #12111d"],
[data-theme-mode="light"] .action-modal-card [style*="background:#121217"],
.light-theme .action-modal-card [style*="background:#121217"],
[data-theme-mode="light"] .action-modal-card [style*="background:#12111d"],
.light-theme .action-modal-card [style*="background:#12111d"],
[data-theme-mode="light"] .action-modal-card [style*="background: #1e293b"],
.light-theme .action-modal-card [style*="background: #1e293b"],
[data-theme-mode="light"] .action-modal-card [style*="background:#1e293b"],
.light-theme .action-modal-card [style*="background:#1e293b"] {
  background: #edf1f6 !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .action-modal-card [style*="color: #f1f5f9"],
.light-theme .action-modal-card [style*="color: #f1f5f9"],
[data-theme-mode="light"] .action-modal-card [style*="color:#f1f5f9"],
.light-theme .action-modal-card [style*="color:#f1f5f9"],
[data-theme-mode="light"] .action-modal-card [style*="color: #f8fafc"],
.light-theme .action-modal-card [style*="color: #f8fafc"],
[data-theme-mode="light"] .action-modal-card [style*="color: #ffffff"],
.light-theme .action-modal-card [style*="color: #ffffff"] {
  color: #0f172a !important;
}

[data-theme-mode="light"] .action-modal-card [style*="color: #94a3b8"],
.light-theme .action-modal-card [style*="color: #94a3b8"],
[data-theme-mode="light"] .action-modal-card [style*="color:#94a3b8"],
.light-theme .action-modal-card [style*="color:#94a3b8"],
[data-theme-mode="light"] .action-modal-card [style*="color: #cbd5e1"],
.light-theme .action-modal-card [style*="color: #cbd5e1"] {
  color: #475569 !important;
}

/* Modal Bildirim ve Bilgi Hapları */
[data-theme-mode="light"] .quick-reg-notice,
.light-theme .quick-reg-notice {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

[data-theme-mode="light"] .quick-reg-notice .notice-text,
.light-theme .quick-reg-notice .notice-text {
  color: #1e3a8a !important;
}

[data-theme-mode="light"] .quick-reg-calc-pill,
.light-theme .quick-reg-calc-pill {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

[data-theme-mode="light"] .calc-pill-label,
.light-theme .calc-pill-label {
  color: #166534 !important;
}

[data-theme-mode="light"] .calc-pill-value,
.light-theme .calc-pill-value {
  color: #15803d !important;
}

[data-theme-mode="light"] .rfid-scanner-box,
.light-theme .rfid-scanner-box {
  background: #edf1f6 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Modal Alt Çubuk & Aksiyon Butonları */
[data-theme-mode="light"] .modal-actions-row,
.light-theme .modal-actions-row,
[data-theme-mode="light"] .quick-reg-actions-row,
.light-theme .quick-reg-actions-row {
  background: #edf1f6 !important;
  border-top: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .btn-modal-cancel,
.light-theme .btn-modal-cancel,
[data-theme-mode="light"] .btn-cancel,
.light-theme .btn-cancel,
[data-theme-mode="light"] .btn-quick-cancel,
.light-theme .btn-quick-cancel,
[data-theme-mode="light"] .btn-subtle,
.light-theme .btn-subtle,
[data-theme-mode="light"] .btn-action-ghost,
.light-theme .btn-action-ghost,
[data-theme-mode="light"] .btn-action-secondary,
.light-theme .btn-action-secondary {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme-mode="light"] .btn-modal-cancel:hover,
.light-theme .btn-modal-cancel:hover,
[data-theme-mode="light"] .btn-cancel:hover,
.light-theme .btn-cancel:hover,
[data-theme-mode="light"] .btn-quick-cancel:hover,
.light-theme .btn-quick-cancel:hover,
[data-theme-mode="light"] .btn-subtle:hover,
.light-theme .btn-subtle:hover,
[data-theme-mode="light"] .btn-action-ghost:hover,
.light-theme .btn-action-ghost:hover,
[data-theme-mode="light"] .btn-action-secondary:hover,
.light-theme .btn-action-secondary:hover {
  background: #d5dde6 !important;
  color: #0f172a !important;
}

/* Tarayıcı Autofill İnput Düzeltmesi */
[data-theme-mode="light"] input:-webkit-autofill,
.light-theme input:-webkit-autofill,
[data-theme-mode="light"] input:-webkit-autofill:hover,
.light-theme input:-webkit-autofill:hover,
[data-theme-mode="light"] input:-webkit-autofill:focus,
.light-theme input:-webkit-autofill:focus,
[data-theme-mode="light"] textarea:-webkit-autofill,
.light-theme textarea:-webkit-autofill,
[data-theme-mode="light"] select:-webkit-autofill,
.light-theme select:-webkit-autofill {
  -webkit-text-fill-color: #0f172a !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  color-scheme: light !important;
}

/* --- Üye Detay Paneli (Member Panel) --- */
[data-theme-mode="light"] .member-topbar {
  background: #f1f4f8 !important;
  background-image: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .member-topbar-left .member-switcher-btn {
  color: #0f172a;
}

[data-theme-mode="light"] .member-topbar-right .branch-badge strong {
  color: #0f172a !important;
}

[data-theme-mode="light"] .member-workspace-layout,
[data-theme-mode="light"] .member-viewport {
  background-color: #e9ecef !important;
}

[data-theme-mode="light"] .member-sidebar {
  background: #f1f4f8 !important;
  border-right: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .member-profile-header-card {
  background: linear-gradient(145deg, #edf1f6 0%, #e2e7ee 100%) !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .member-nav-link {
  color: #475569;
}

[data-theme-mode="light"] .member-nav-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme-mode="light"] .member-nav-link.active {
  background: rgba(224, 109, 43, 0.15);
  border-color: rgba(224, 109, 43, 0.3);
  color: var(--gym-primary);
}

[data-theme-mode="light"] .member-card {
  background: #f6f8fa !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme-mode="light"] .member-card-header {
  border-bottom: 1px solid #e2e8f0;
}

[data-theme-mode="light"] .member-card-title {
  color: #0f172a;
}

[data-theme-mode="light"] .m-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme-mode="light"] .m-btn:hover {
  background: #d5dde6;
  color: #0f172a;
}

[data-theme-mode="light"] .member-panel-root input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
[data-theme-mode="light"] .member-panel-root select,
[data-theme-mode="light"] .member-panel-root textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  color-scheme: light;
}

[data-theme-mode="light"] .member-panel-root input:focus,
[data-theme-mode="light"] .member-panel-root select:focus,
[data-theme-mode="light"] .member-panel-root textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--gym-primary) !important;
  box-shadow: 0 0 0 3px rgba(224, 109, 43, 0.18) !important;
  color: #0f172a !important;
}

[data-theme-mode="light"] .freeze-table-wrapper {
  background: #f6f8fa !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .freeze-table thead th {
  background: #e5ebf1 !important;
  color: #334155 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme-mode="light"] .freeze-table tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme-mode="light"] .freeze-table tbody tr:hover {
  background: #edf2f7 !important;
}

[data-theme-mode="light"] .freeze-stat-box {
  background: #edf1f6 !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .freeze-stat-label {
  color: #475569 !important;
}

[data-theme-mode="light"] .freeze-stat-value {
  color: #0f172a !important;
}

[data-theme-mode="light"] .freeze-card-has-rights,
.light-theme .freeze-card-has-rights {
  border-color: rgba(2, 132, 199, 0.4) !important;
}

[data-theme-mode="light"] .freeze-card-has-rights .freeze-val-text,
.light-theme .freeze-card-has-rights .freeze-val-text {
  color: #0284c7 !important;
}

[data-theme-mode="light"] .freeze-card-no-rights,
.light-theme .freeze-card-no-rights {
  border-color: rgba(220, 38, 38, 0.4) !important;
}

[data-theme-mode="light"] .freeze-card-no-rights .freeze-val-text,
.light-theme .freeze-card-no-rights .freeze-val-text {
  color: #dc2626 !important;
}

[data-theme-mode="light"] .pkg-avatar-session,
.light-theme .pkg-avatar-session {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #9333ea !important;
}

[data-theme-mode="light"] .pkg-avatar-subscription,
.light-theme .pkg-avatar-subscription {
  background: rgba(224, 109, 43, 0.15) !important;
  color: #c2410c !important;
}

[data-theme-mode="light"] .pkg-type-badge.badge-session,
.light-theme .pkg-type-badge.badge-session {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #9333ea !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}

[data-theme-mode="light"] .pkg-type-badge.badge-subscription,
.light-theme .pkg-type-badge.badge-subscription {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

[data-theme-mode="light"] .pkg-duration-text.text-session,
.light-theme .pkg-duration-text.text-session {
  color: #9333ea !important;
}

[data-theme-mode="light"] .pkg-duration-text.text-subscription,
.light-theme .pkg-duration-text.text-subscription {
  color: #334155 !important;
}

[data-theme-mode="light"] .kpi-val-danger,
.light-theme .kpi-val-danger {
  color: #dc2626 !important;
}

[data-theme-mode="light"] .kpi-val-success,
.light-theme .kpi-val-success {
  color: #059669 !important;
}

/* Hizmetler ve Seanslar Açık Tema */
[data-theme-mode="light"] .service-card-item,
.light-theme .service-card-item {
  background: #f6f8fa !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .service-card-title,
.light-theme .service-card-title {
  color: #0f172a !important;
}

[data-theme-mode="light"] .service-progress-container,
.light-theme .service-progress-container {
  background: #edf1f6 !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .service-progress-track,
.light-theme .service-progress-track {
  background: #d8e0e9 !important;
}

[data-theme-mode="light"] .service-card-footer,
.light-theme .service-card-footer {
  border-top-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme-mode="light"] .service-empty-box,
.light-theme .service-empty-box {
  background: #f6f8fa !important;
  border-color: #cbd5e1 !important;
}

[data-theme-mode="light"] .service-table-card,
.light-theme .service-table-card {
  background: #f6f8fa !important;
  border-color: #cbd5e1 !important;
}
