/* NurVakit paneli: sade, okunaklı, sitenin renkleriyle */
:root {
  --bg: #f4f6fa; --surface: #fff; --ink: #0f1b2d; --muted: #4a5a70; --line: #dfe5ee; --brand: #16365f;
  --night: #13233a; --gold: #d6b25e; --ok: #1f7a4d; --warn: #8a6510; --bad: #b3261e; --focus: #1d4f91;
  --radius: 12px; --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--sans); background: var(--bg); color: var(--ink); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.muted { color: var(--muted); }
.loading { padding: 2rem; }
.moon { display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.12em; border-radius: 50%; box-shadow: inset .28em -.12em 0 0 var(--gold); }

/* giriş */
.auth { max-width: 24rem; margin: 10vh auto; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.auth form { display: grid; gap: .9rem; margin-top: 1rem; }
.auth label { display: grid; gap: .3rem; font-weight: 600; }
.auth-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.hint { font-size: .9rem; color: var(--muted); }

/* iskelet */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; background: var(--night); color: #eef3f7; position: sticky; top: 0; z-index: 5; }
.brand { color: #eef3f7; text-decoration: none; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.pending { font-size: .9rem; color: #a9bccd; }
.layout { display: grid; grid-template-columns: 15rem 1fr; min-height: calc(100vh - 52px); }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 1rem .75rem; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side a { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--bg); }
.side a[aria-current] { background: #e3ecf8; color: var(--brand); font-weight: 600; }
.side-foot { margin-top: 1.5rem; padding-left: .7rem; font-size: .9rem; }
.main { padding: 1.5rem 2rem 4rem; max-width: 64rem; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.intro { color: var(--muted); max-width: 60ch; }
.back { margin: 0 0 .5rem; }
@media (max-width: 52rem) { .layout { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--line); } .side ul { grid-auto-flow: column; overflow-x: auto; } .side a { white-space: nowrap; } .main { padding: 1rem; } }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-quiet { background: transparent; border-color: var(--line); color: inherit; }
.top .btn-quiet { color: #eef3f7; border-color: #3a5478; }
.btn-danger { background: transparent; border-color: #f2b8b5; color: var(--bad); }

/* kartlar ve listeler */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.stat { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .2rem; }
.stat strong { font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.steps li { margin-bottom: .4rem; }
.plain { padding-left: 1.1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.filters label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list th, .list td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { background: #eef2f8; font-size: .85rem; }
.list tbody tr[data-key] { cursor: pointer; }
.list tbody tr[data-key]:hover { background: #f7f9fc; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge.ok { background: #e2f3ea; color: var(--ok); }
.badge.warn { background: #fff1cc; color: var(--warn); }
.badge.new { background: #e3ecf8; color: var(--brand); }
.badge.bad { background: #fde7e6; color: var(--bad); }

/* form */
.form { display: grid; gap: 1rem; margin-top: 1rem; max-width: 46rem; }
.field { display: grid; gap: .3rem; border: 0; margin: 0; padding: 0; }
.field > label, .field > legend, .lbl { font-weight: 600; margin: 0; }
.field small { color: var(--muted); }
.field.check { display: block; }
.field.check label, label.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
fieldset.field label.check { margin: .2rem 0; }
input, select, textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #8593a8; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input[type="checkbox"] { width: auto; }
input[type="file"] { border: 0; padding: .3rem 0; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
.ar { font-size: 1.25rem; font-family: "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; }
.reviewbox { padding: .75rem; background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .5rem; }
.sec { padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .6rem; display: grid; gap: .5rem; }
.sec .row { grid-template-columns: 2fr 1fr auto; }
.preview { max-width: 20rem; border-radius: 8px; border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.msg { min-height: 1.4em; margin: 0; color: var(--bad); }
.toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 26rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--night); color: #eef3f7; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 20; }
.toast.is-bad { background: var(--bad); }
