:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #68737d;
  --line: #dfe5e8;
  --brand: #176b5b;
  --brand-2: #2f8f83;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(23, 32, 38, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
button, .btn {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.btn.secondary { background: #e8f2ef; color: var(--brand); }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }

.public-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(23, 107, 91, .10), rgba(255, 255, 255, 0) 42%),
    #f6f8f7;
}
.verify-shell { width: min(860px, 100%); }
.verify-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.brand-row { display: flex; gap: 16px; align-items: center; margin-bottom: 30px; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}
.brand-row h1 { margin: 0; font-size: 30px; letter-spacing: 0; }
.brand-row p { margin: 3px 0 0; color: var(--muted); }
.brand-mark-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}
.lookup-form { display: grid; gap: 10px; }
.lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.result-list { display: grid; gap: 12px; margin-top: 24px; }
.result-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.result-item div:first-child { display: grid; gap: 3px; }
.result-item span, .result-item small, .verify-note, .muted { color: var(--muted); }
.result-actions { display: flex; gap: 8px; align-items: center; }
.empty-state { margin-top: 24px; padding: 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.verify-note { margin: 26px 0 0; font-size: 14px; }
.alert { padding: 12px 14px; border-radius: 7px; margin-bottom: 18px; background: #e8f2ef; color: var(--brand); }
.alert.error { background: #fff0ed; color: var(--danger); }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef3f1;
}
.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0 0 8px; }

.admin-body { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar {
  background: #111a1f;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar a, .logout {
  color: #d8e1e4;
  background: transparent;
  border-radius: 7px;
  padding: 11px 12px;
  justify-content: flex-start;
  min-height: auto;
  font-weight: 700;
}
.sidebar a.active, .sidebar a:hover, .logout:hover { background: rgba(255,255,255,.10); color: #fff; }
.logout { width: 100%; margin-top: auto; }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.admin-topbar h1 { margin: 0; font-size: 28px; }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(23, 32, 38, .04);
}
.stat-card { padding: 20px; display: grid; gap: 8px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 32px; }
.panel { padding: 20px; }
.panel h2 { margin-top: 0; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.toolbar input { max-width: 460px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 16px; }
.form-panel form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
pre {
  white-space: pre-wrap;
  background: #111a1f;
  color: #f3fbf8;
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 860px) {
  .admin-body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-row, .result-item, .toolbar, .admin-topbar { grid-template-columns: 1fr; display: grid; }
  .result-actions { align-items: stretch; }
}

@media (max-width: 560px) {
  .verify-card { padding: 22px; }
  .stats-grid, .form-grid { grid-template-columns: 1fr; }
}

/* =======================================================
   Turuncu sertifika sorgulama teması (theme-orange)
   Sadece belge-sorgulama sayfasına uygulanır; body'ye
   "theme-orange" class'ı eklenerek etkinleşir.
   ======================================================= */
:root {
  --orange-1: #f6941f;
  --orange-2: #ee7d0d;
  --seal-ink: #ffffff;
}

.public-body.theme-orange {
  background: radial-gradient(120% 140% at 50% -10%, var(--orange-1) 0%, var(--orange-2) 55%, #e6740a 100%);
  padding: 64px 24px;
}

.theme-orange .verify-shell { width: min(640px, 100%); }

.theme-orange .verify-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  color: #fff;
}

/* Marka bölümü: mühür + gizli (erişilebilirlik amaçlı) başlık */
.theme-orange .brand-row {
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
}
.theme-orange .brand-mark { display: none; }
.theme-orange .brand-row h1,
.theme-orange .brand-row p {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.orange-seal {
  width: 176px;
  height: 176px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}

/* Arama pili (pill) */
.theme-orange .lookup-form { max-width: 560px; margin: 0 auto; }
.theme-orange .lookup-form label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.theme-orange .lookup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, .20);
}
.theme-orange .lookup-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 4px;
  font-size: 15px;
  background: transparent;
}
.theme-orange .lookup-row input:focus { outline: none; }
.theme-orange .lookup-row button {
  border-radius: 999px;
  background: var(--orange-2);
  padding: 14px 30px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 48px;
}
.theme-orange .lookup-row button:hover { background: #e0700a; }

/* İki dilli açıklama metni */
.theme-orange .verify-instructions {
  margin-top: 26px;
  display: grid;
  gap: 4px;
}
.theme-orange .verify-instructions p {
  margin: 0;
  color: #fff;
}
.theme-orange .verify-instructions .lang-tr { font-size: 15px; font-weight: 600; }
.theme-orange .verify-instructions .lang-en { font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.theme-orange .verify-note { display: none; } /* eski tekil not, yerini verify-instructions aldı */

/* Sonuçlar / uyarılar: turuncu zemin üstünde okunaklı beyaz panel */
.theme-orange .alert,
.theme-orange .empty-state,
.theme-orange .result-list {
  text-align: left;
  margin-top: 26px;
}
.theme-orange .alert {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}
.theme-orange .empty-state {
  background: #fff;
  color: var(--text);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}
.theme-orange .result-item {
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}
.theme-orange p.verify-note.results-count {
  display: block;
  color: #fff;
  text-align: left;
  margin: 28px 0 4px;
}

/* ISO / sertifikasyon rozetleri */
.cert-badges {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}
.iso-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 560px) {
  .theme-orange .lookup-row { flex-direction: column; align-items: stretch; padding: 16px; border-radius: 22px; }
  .theme-orange .lookup-row input { padding: 12px 10px; text-align: center; }
  .theme-orange .lookup-row button { width: 100%; }
  .orange-seal { width: 140px; height: 140px; }
}

