/* ===== Goodbuy Light Theme (edermi.com style) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --gb-primary: #14b8a6;
  --gb-primary-dark: #0f766e;
  --gb-accent: #f59e0b;
  --gb-dark: #ffffff;
  --gb-darker: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
  background: var(--gb-darker) !important;
  color: var(--text-secondary) !important;
}
a { color: var(--gb-primary); transition: color .2s; }
a:hover { color: var(--gb-primary-dark); }

/* ===== NAV ===== */
nav, .navbar-custom {
  background: #fff !important;
  border-bottom: 1px solid var(--border-light) !important;
  backdrop-filter: none !important;
}
nav a, .navbar-custom a { color: var(--text-primary) !important; }
nav a:hover, .navbar-custom a:hover { color: var(--gb-primary) !important; }
.nav-links a { color: var(--text-secondary) !important; font-weight: 500; }
.nav-links a:hover { color: var(--gb-primary) !important; }

/* ===== CARDS ===== */
.card, .card-hover, [class*="card-"]:not(.stat-card) {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: var(--shadow-sm) !important;
}
.card h3, .card .card-title, [class*="card-"] h3 {
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-light) !important;
}

/* ===== STAT CARDS (admin) ===== */
.stat-card { background: #fff !important; border-color: var(--border-light) !important; }
.stat-number { background: linear-gradient(135deg, var(--gb-primary), #0f766e) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-primary-custom, [class*="btn-primary"] {
  background: linear-gradient(135deg, var(--gb-primary), #0d9488) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover, .btn-primary-custom:hover {
  background: linear-gradient(135deg, #0d9488, #115e59) !important;
  box-shadow: 0 4px 12px rgba(20,184,166,.24) !important;
}
.btn-outline, .btn-outline-custom, [class*="btn-outline"] {
  background: #fff !important;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--border-light) !important;
}
.btn-outline:hover, .btn-outline-custom:hover {
  border-color: var(--gb-primary) !important;
  color: var(--gb-primary) !important;
  background: rgba(20,184,166,.04) !important;
}

/* ===== INPUTS ===== */
.input-field, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  background: #fff !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  border-radius: 8px !important;
}
.input-field:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--gb-primary) !important;
  box-shadow: 0 0 0 3px rgba(20,184,166,.1) !important;
}
.input-field::placeholder { color: var(--text-muted) !important; }
select.input-field option { background: #fff !important; color: var(--text-primary) !important; }

/* ===== LABELS ===== */
.label, .form-label { color: var(--text-primary) !important; font-weight: 600 !important; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--gb-primary), #0f766e) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ===== TABLE ===== */
table { background: #fff; border-color: var(--border-light) !important; }
th { color: var(--text-primary) !important; font-weight: 600 !important; border-bottom: 2px solid var(--border-light) !important; }
td { color: var(--text-secondary) !important; border-color: var(--border-light) !important; }
tr:hover { background: rgba(20,184,166,.02) !important; }

/* ===== ALERTS ===== */
.alert-warning { background: rgba(245,158,11,.08) !important; border-color: rgba(245,158,11,.2) !important; color: #92400e !important; }
.alert-error, .alert-danger { background: rgba(239,68,68,.08) !important; border-color: rgba(239,68,68,.2) !important; color: #dc2626 !important; }
.alert-success { background: rgba(20,184,166,.08) !important; border-color: rgba(20,184,166,.2) !important; color: #065f46 !important; }

/* ===== PAGE HEADER / TITLE ===== */
.page-header h1 { color: var(--text-primary) !important; }
.page-header p { color: var(--text-secondary) !important; }

/* ===== FOOTER LINKS ===== */
footer, [class*="footer"] { color: var(--text-muted) !important; }

/* ===== BADGES ===== */
.admin-badge { background: var(--gb-accent) !important; color: #000 !important; }
.badge, .tag { color: var(--text-primary) !important; }

/* ===== OZET / SKOR CARDS ===== */
.ozet-card { background: linear-gradient(135deg, rgba(20,184,166,.06), rgba(245,158,11,.03)) !important; border: 1px solid rgba(20,184,166,.1) !important; }
.ozet-card .deger-label { color: var(--text-muted) !important; }
.ozet-item { background: rgba(0,0,0,.02) !important; }
.ozet-item .val { color: var(--text-primary) !important; }
.ozet-item .lbl { color: var(--text-muted) !important; }

.skor-card { background: #fff !important; border: 1px solid var(--border-light) !important; }
.skor-card .s-label { color: var(--text-muted) !important; }

.rapor-id { color: var(--gb-primary) !important; }

/* ===== CHAT ===== */
.chat-container { background: var(--gb-darker) !important; }
.chat-header h1 { color: var(--text-primary) !important; }
.chat-header p { color: var(--text-secondary) !important; }
.message.ai { background: #f1f5f9 !important; color: var(--text-primary) !important; }
.message .time, .chat-messages .time { color: var(--text-muted) !important; }
.chat-input .input-group { background: #fff !important; border-color: var(--border-light) !important; }
.chat-input input { color: var(--text-primary) !important; }
.chat-input input::placeholder { color: var(--text-muted) !important; }

/* ===== ADMIN LINKS ===== */
.admin-links a { background: #fff !important; border-color: var(--border-light) !important; color: var(--text-secondary) !important; }
.admin-links a:hover { border-color: var(--gb-primary) !important; background: rgba(20,184,166,.03) !important; color: var(--gb-primary) !important; }

/* ===== MISCELLANEOUS ===== */
.alert { border-radius: 8px !important; }
.text-muted, [class*="text-muted"] { color: var(--text-muted) !important; }
hr { border-color: var(--border-light) !important; }

/* Override any remaining dark bg text */
[style*="color:rgba(255,255,255,"],
[style*="color: rgba(255,255,255,"] {
  color: var(--text-secondary) !important;
}

/* Gradient logo/detail boxes keep white text */
[style*="background:linear-gradient"][style*="color:#fff"],
[style*="background: linear-gradient"][style*="color:#fff"],
[style*="background:linear-gradient"][style*="color: #fff"],
[style*="background: linear-gradient"][style*="color: #fff"] {
  color: #fff !important;
}
[style*="background:linear-gradient"][style*="color:white"],
[style*="background: linear-gradient"][style*="color: white"] {
  color: #fff !important;
}
