/* ===== Shared Admin UI (dark) ===== */
.btn{display:inline-block;padding:10px 12px;border:0;border-radius:10px;cursor:pointer;transition:.2s;background:#374151;color:#fff}
.btn:hover{filter:brightness(1.05)}
.btn.primary{background:#2563eb}
.btn.success{background:#16a34a}
.btn.danger{background:#ef4444}
.btn.secondary{background:#6b7280}
.btn.gray{background:#374151}
.btn.green{background:#10b981}
.btn.red{background:#ef4444}
.badge{padding:3px 8px;border-radius:999px;font-size:12px;display:inline-block}
.badge.active,.on{background:#065f46;color:#d1fae5}
.badge.inactive,.off{background:#7f1d1d;color:#fecaca}
.master-wrap{padding:16px}
.headbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}
.search{display:flex;gap:8px;align-items:center}
.card{background:#111827;border:1px solid #1f2937;border-radius:16px;padding:16px;color:#e5e7eb}
.inp{width:260px;padding:10px;border-radius:10px;border:1px solid #374151;background:#0b1220;color:#e5e7eb}
.inp.small{width:140px}
.table-wrap{max-height:60vh;overflow:auto;border-radius:12px}
table{width:100%;border-collapse:separate;border-spacing:0}
th,td{padding:10px;border-bottom:1px solid #1f2937;text-align:left;color:#e5e7eb}
thead th{position:sticky;top:0;background:#0b1220;z-index:2}
.text-muted{color:#9ca3af}
.thumb.thumb-200 { width:200px; height:200px; object-fit:cover; border-radius:8px; }
/* ===============================
   DASHBOARD DARK THEME FIX
   =============================== */



/* Titles */
.card h3,
.dash-title h1 {
  color: #e5e7eb; /* light gray */
}

/* Sub text */
.muted,
.dash-title .muted {
  color: #94a3b8;
}

/* Key–value rows */
.kv-row {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.kv-label {
  color: #cbd5f5;
}

.kv-value {
  color: #ffffff;
}

/* Metric blocks */
.metric {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.metric .k {
  color: #94a3b8;
}

.metric .v {
  color: #ffffff;
}

/* Status section headings */
.split h3 {
  color: #e5e7eb;
}

/* Date filter labels */
.filter-field label {
  color: #cbd5f5;
}

/* Inputs */
.filter-field input {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Buttons (keep theme look) */
.btn.primary {
  background: #2563eb;
  border-color: #2563eb;
}
