/* Altin Panel - ek stiller (Tailwind disindaki ozellestirmeler) */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.signal-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.signal-card.long {
  border-color: #16a34a;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.4), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

.signal-card.short {
  border-color: #dc2626;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.4), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.signal-card.neutral {
  border-color: #6b7280;
  opacity: 0.7;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  color: #fde68a;
}

.card-tf {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  color: #cbd5e1;
}

.card-direction {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 12px 0 8px 0;
  color: #cbd5e1;
}

.signal-card.long .card-direction { color: #22c55e; }
.signal-card.short .card-direction { color: #ef4444; }

.card-confidence {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.card-meta {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px;
  border-radius: 6px;
  color: #94a3b8;
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.card-meta:empty {
  display: none;
}

/* Konfluans renkleri */
.confluence-long {
  color: #22c55e;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.5);
}

.confluence-short {
  color: #ef4444;
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
}

.confluence-neutral {
  color: #94a3b8;
}

/* Threshold mini kutular */
.threshold-cell {
  padding: 6px 4px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #334155;
}
.threshold-cell.long { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: #16a34a; }
.threshold-cell.short { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: #dc2626; }
.threshold-cell.neutral { color: #94a3b8; }
.threshold-cell.active-threshold { box-shadow: 0 0 0 2px #fbbf24; }

/* Custom modal stilleri (browser confirm/alert kullanmiyoruz) */
.modal-bg {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* Buyuk Micro M1/M5 kartlari */
.signal-card-large {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid #475569;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}
.signal-card-large.long {
  border-color: #16a34a;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.25);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.35), rgba(15, 23, 42, 0.95));
}
.signal-card-large.short {
  border-color: #dc2626;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.95));
}
.signal-card-large.no-trade {
  border-color: #475569;
  opacity: 0.75;
}

/* Performance kartlari */
.perf-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.85));
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
}
.perf-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 700;
  margin-bottom: 8px;
}

/* 4 motor kartlari (yeni sade tasarim) */
.motor-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s ease;
}
.motor-card.long {
  border-color: #16a34a;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.35), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.18);
}
.motor-card.short {
  border-color: #dc2626;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.18);
}
.motor-card.neutral {
  opacity: 0.75;
}
.motor-card .motor-signal { color: #cbd5e1; }
.motor-card.long .motor-signal { color: #22c55e; }
.motor-card.short .motor-signal { color: #ef4444; }

/* TOP DECISION buyuk aksiyon karti */
#top-action.execute-long { color: #22c55e; text-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
#top-action.execute-short { color: #ef4444; text-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
#top-action.wait { color: #94a3b8; }

/* Backtest tablosu */
.bt-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.bt-table th, .bt-table td {
  padding: 6px 10px;
  text-align: right;
  border-bottom: 1px solid #334155;
}
.bt-table th {
  background: rgba(0, 0, 0, 0.3);
  color: #fde68a;
  font-weight: 600;
  text-align: center;
}
.bt-table .best-row {
  background: rgba(251, 191, 36, 0.1);
  font-weight: 700;
}

/* S/R Dynamic Controls */
#sr-controls-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s ease-out forwards;
}

/* Next Candle Predictor Card Styles */
#nct-card {
  border-color: #0891b2; /* cyan-600 */
  transition: all 0.3s ease;
}

#nct-card.long {
  border-color: #16a34a; /* emerald */
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

#nct-card.short {
  border-color: #dc2626; /* rose */
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

#nct-card.neutral {
  border-color: #334155;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.9));
  opacity: 0.85;
}

#nct-card.long #nct-direction { color: #10b981; text-shadow: 0 0 18px rgba(16, 185, 129, 0.5); }
#nct-card.short #nct-direction { color: #f43f5e; text-shadow: 0 0 18px rgba(244, 63, 94, 0.5); }
#nct-card.neutral #nct-direction { color: #94a3b8; }

/* ==================== LIGHT THEME OVERLAYS ==================== */
html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light header {
  background: linear-gradient(to right, #78350f, #d97706, #78350f) !important;
}

html.light section,
html.light .motor-card,
html.light .signal-card,
html.light .signal-card-large,
html.light .perf-card,
html.light .bg-slate-900,
html.light .bg-slate-800,
html.light .bg-slate-900\/60,
html.light .bg-slate-800\/60 {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html.light .bg-slate-950 {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.light .bg-slate-950\/60 {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html.light .bg-slate-950\/80 {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-slate-500,
html.light .text-slate-600 {
  color: #334155 !important;
}

html.light .opacity-50,
html.light .opacity-60,
html.light .opacity-70 {
  opacity: 0.9 !important;
}

html.light .border-slate-800,
html.light .border-slate-700,
html.light .border-slate-800\/80 {
  border-color: #cbd5e1 !important;
}

html.light #theme-toggle {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.light #nct-card {
  border-color: #0891b2 !important;
}

html.light #nct-card.long {
  border-color: #22c55e !important;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.6), #ffffff) !important;
}

html.light #nct-card.short {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.6), #ffffff) !important;
}

html.light #nct-card.neutral {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

html.light .threshold-cell {
  border-color: #cbd5e1 !important;
}

html.light .threshold-cell.long {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #16a34a !important;
  border-color: #22c55e !important;
}

html.light .threshold-cell.short {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
  border-color: #ef4444 !important;
}

html.light .bt-table th {
  background: #f1f5f9 !important;
  color: #b45309 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

html.light .bt-table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

html.light .bt-table .best-row {
  background: rgba(217, 119, 6, 0.08) !important;
}

html.light select,
html.light input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

