/* YNKSOFT Site Yönetim - Premium UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f1f4f9;
  --card: #ffffff;
  --ink: #16213a;
  --muted: #64748b;
  --line: #e5eaf2;
  --pri: #4f46e5;
  --pri-2: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(22, 33, 58, .07);
  --side-w: 256px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
a { text-decoration: none; color: inherit; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.25), transparent),
              radial-gradient(900px 500px at -10% 110%, rgba(79,70,229,.25), transparent), #0f1533;
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 24px;
  padding: 40px 36px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .mark {
  width: 64px; height: 64px; border-radius: 20px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 10px 30px rgba(79,70,229,.4);
}
.login-logo h1 { font-size: 22px; font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.login-logo p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs a.active { background: #fff; color: var(--pri); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ---------- Form ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: .15s;
}
.input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.fg { margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: none; border-radius: 12px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-pri { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(79,70,229,.35); }
.btn-pri:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79,70,229,.45); }
.btn-sec { background: #eef1f8; color: var(--ink); }
.btn-sec:hover { background: #e2e7f2; }
.btn-danger { background: #fee2e2; color: var(--err); }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side-w); background: #0f1533; color: #cbd5e1; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 50; transition: transform .25s;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px; }
.sidebar .brand .mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.sidebar .brand b { color: #fff; font-size: 15px; display: block; letter-spacing: -.01em; }
.sidebar .brand span { font-size: 11px; color: #7d8cb0; }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: #9aa7c7; margin-bottom: 2px; transition: .15s;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5b6a90; padding: 16px 14px 6px; }
.sidebar .foot { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar .foot a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: #9aa7c7; transition: .15s;
}
.sidebar .foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .foot a svg { width: 19px; height: 19px; flex-shrink: 0; }

.main { flex: 1; margin-left: var(--side-w); padding: 26px 30px 90px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.topbar h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.topbar .crumb { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hamburger { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; }

/* ---------- Cards & Stats ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.stat.ok::after { background: linear-gradient(90deg, #059669, #34d399); }
.stat.warn::after { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat.err::after { background: linear-gradient(90deg, #dc2626, #f87171); }
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .val { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafd; }
.t-right { text-align: right; }

/* ---------- Badges & Alerts ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.b-ok { background: #d1fae5; color: #065f46; }
.b-warn { background: #fef3c7; color: #92400e; }
.b-err { background: #fee2e2; color: #991b1b; }
.b-info { background: #e0e7ff; color: #3730a3; }
.b-mute { background: #f1f5f9; color: #475569; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #e0e7ff; color: #3730a3; }

/* ---------- Misc ---------- */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1; min-width: 140px; }
.row > .fit { flex: 0; min-width: auto; }
.mt { margin-top: 16px; } .mb0 { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 10px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

/* ---------- Mobile ---------- */
.overlay { display: none; position: fixed; inset: 0; background: rgba(15,21,51,.5); z-index: 40; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .overlay.show { display: block; }
  .main { margin-left: 0; padding: 18px 14px 90px; }
  .hamburger { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .topbar h2 { font-size: 18px; }
  .card { padding: 16px; }
  .stat .val { font-size: 21px; }
  td, th { padding: 10px 8px; font-size: 13px; }
}
