:root {
  --accent: #2447A8;
  --accent-dark: #1a3480;
  --ink: #1d1d1d;
  --bg: #f5f6f8;
  --border: #e2e4e9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.topbar nav a { margin-left: 18px; color: #555; text-decoration: none; font-size: 0.92rem; }
.topbar nav a:hover { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 20px;
}
h1 { margin-top: 0; }
.section-title { font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 10px; margin: 18px 0 12px; }
.muted { color: #888; font-size: 0.9rem; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
}
.field input[type=checkbox] { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px; font-size: 0.92rem; cursor: pointer;
  text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: #eef0f4; color: var(--ink); }
.btn.secondary:hover { background: #e2e4ea; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: #777; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.durum-taslak { background: #eee; color: #555; }
.durum-icerik_uretiliyor { background: #fff3cd; color: #856404; }
.durum-icerik_hazir { background: #cfe2ff; color: #084298; }
.durum-icerik_hata { background: #f8d7da; color: #842029; }
.durum-dizildi { background: #d1e7dd; color: #0f5132; }

.hata { color: #b3261e; }
.hata-kutu, .rapor-kutu {
  background: #101215; color: #d9d7d0; padding: 14px 16px; border-radius: 8px;
  font-size: 0.82rem; white-space: pre-wrap; overflow-x: auto; margin-top: 12px;
}

.konu-satir {
  display: grid; grid-template-columns: 1fr 2fr 0.6fr 1fr auto; gap: 10px;
  align-items: end; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border);
}
.sil-btn { height: 38px; }

.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); margin: 0;
}
.login-card {
  background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 40px; width: 100%; max-width: 360px; text-align: center;
}
.login-card .sub { color: #888; margin-top: -8px; margin-bottom: 20px; }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .konu-satir { grid-template-columns: 1fr; }
}
