@font-face { font-family: Jakarta; src: url(/assets/plus-jakarta-sans-v12-latin_latin-ext-regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/plus-jakarta-sans-v12-latin_latin-ext-500.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/plus-jakarta-sans-v12-latin_latin-ext-600.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/plus-jakarta-sans-v12-latin_latin-ext-700.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Jakarta; src: url(/assets/plus-jakarta-sans-v12-latin_latin-ext-800.ttf); font-weight: 800; font-display: swap; }

:root {
  --bg: #f2f2ef; --surface: #fff; --surface-alt: #e8e8e4; --line: #e2e2de;
  --ink: #16161a; --ink2: #6b6b71; --ink3: #a5a5aa;
  --ember: #ff6a1f; --ember-soft: #ffeadf; --aqua: #27bfd3; --aqua-soft: #ddf4f7;
  --ok: #2fbf71; --ok-soft: #e3f6ec; --bad: #e5484d; --bad-soft: #fde8e8;
  --r: 22px; --shadow: 0 12px 30px rgba(22, 22, 26, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 14px/1.5 Jakarta, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1 { font-size: 28px; letter-spacing: -.04em; margin: 0; font-weight: 800; }
h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; font-weight: 700; }
.muted { color: var(--ink2); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* --- Yerleşim --- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { padding: 28px 18px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { height: 20px; margin: 4px 12px 30px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 100px; color: var(--ink2); text-decoration: none; font-weight: 600; transition: .2s; }
.nav:hover { background: var(--surface); color: var(--ink); }
.nav.on { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(22,22,26,.18); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .me { margin-top: auto; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.main { padding: 34px 40px 60px; max-width: 1280px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.head p { margin: 4px 0 0; }

/* --- Bileşenler --- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.stat .v { font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; margin-top: 14px; }
.stat .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.stat .ic svg { width: 18px; height: 18px; }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--ink); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/assets/hero-heater.jpg) right 30% / cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #16161a 25%, rgba(22,22,26,.2)); }
.hero > * { position: relative; z-index: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 100px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.soft { background: var(--bg); color: var(--ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink2); }
.input { height: 46px; padding: 0 16px; border-radius: 14px; border: 1.4px solid transparent; background: var(--bg); outline: none; transition: .2s; width: 100%; }
.input:focus { border-color: var(--ink); background: var(--surface); }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #1d8a51; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ember { background: var(--ember-soft); color: #c2410c; }
.pill.aqua { background: var(--aqua-soft); color: #0e7f8e; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 700; padding: 0 12px 12px; }
td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafaf8; }
td .kind { display: flex; align-items: center; gap: 10px; }
td .kind img { height: 26px; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 40px; color: var(--ink3); }
.bar { height: 6px; background: var(--surface-alt); border-radius: 9px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 9px; transition: width .5s; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ink); }

/* --- Giriş --- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--ink) url(/assets/hero-heater.jpg) center / cover; position: relative; }
.login .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,26,.2), rgba(22,22,26,.85)); }
.login .art div { position: absolute; left: 48px; bottom: 48px; right: 48px; color: #fff; z-index: 1; }
.login .art h1 { font-size: 40px; line-height: 1.08; }
.login .input { background: var(--surface); box-shadow: var(--shadow); }
.login .input:focus { box-shadow: none; }
.login form { align-self: center; justify-self: center; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 14px; }

/* --- Modal & bildirim --- */
.modal-bg { position: fixed; inset: 0; background: rgba(22,22,26,.45); display: grid; place-items: center; z-index: 50; animation: fade .2s; }
.modal { background: var(--bg); border-radius: 28px; padding: 26px; width: min(560px, 92vw); max-height: 86vh; overflow: auto; animation: rise .25s cubic-bezier(.2,.9,.3,1.1); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 100px; font-weight: 600; transition: .3s; z-index: 60; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); }
.fade-in { animation: rise .35s cubic-bezier(.2,.9,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.warn { background: var(--ember-soft); color: #9a3412; padding: 14px 16px; border-radius: 16px; font-weight: 600; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 14px; }
  .side .logo, .side .me { display: none; }
  .main { padding: 20px; }
  .g4, .g3, .g2 { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
}
