/* Global %10 küçültme: tüm sayfa ve yazılar 0.9 ölçek */
html { zoom: 0.9; }
/* Firefox ve zoom desteklemeyen tarayıcılar için fallback */
@supports not (zoom: 1) {
  html { transform: scale(0.9); transform-origin: top left; }
  body { width: calc(100% / 0.9); } /* yatay taşmayı engelle */
}

:root {
  --bg:#fbfdff;
  --bg2:#fffdf7;
  --text:#163a59;
  --muted:#7a8fa6;
  --primary:#5eb1ff;
  --accent:#ff9e56;
  --border:#e8f0fa;

  --sidebar-grad-start:#f5f9ff;
  --sidebar-grad-mid:#fff3e8;
  --sidebar-grad-end:#ffffff;
  --sidebar-border:#dbe9f7;

  --sidebar-width:260px;

  /* Footer (bir tık koyu, kurumsal) */
  --footer-bg:#e3ecf6;
  --footer-text:#0f3054;
}

* { box-sizing:border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text); margin:0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
a { color:var(--primary); text-decoration:none; }

.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.grid { display:grid; gap:12px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.card {
  background:#fff; border:1px solid var(--border); border-radius:12px; padding:14px;
  box-shadow: 0 2px 10px rgba(22,58,89,0.06);
}
.badge { padding:4px 10px; border-radius:999px; font-size:12px; border:1px solid var(--border); color:var(--muted); background:#fff; }
.btn {
  display:inline-block; padding:10px 12px; border:1px solid var(--border); background:#fff;
  border-radius:10px; cursor:pointer; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,58,89,0.08); }
.btn.primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn.accent  { background:var(--accent);  color:#fff; border-color:var(--accent); }

input[type=text], input[type=number], input[type=password], select, textarea {
  width:100%; padding:10px; border:1px solid var(--border); border-radius:10px; background:#fff;
}
.table {
  width:100%; border-collapse: collapse; background:#fff; border-radius:12px; overflow:hidden;
  box-shadow: 0 2px 10px rgba(22,58,89,0.06);
}
.table th, .table td { border-bottom:1px solid var(--border); padding:12px; text-align:left; }
.table tr:last-child td { border-bottom:none; }
.right { text-align:right; }
.flex { display:flex; gap:10px; align-items:center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }

/* Admin sol menü */
.admin-shell { display:flex; min-height:100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--sidebar-grad-start) 0%, var(--sidebar-grad-mid) 55%, var(--sidebar-grad-end) 100%);
  background-size: 200% 200%;
  animation: sidebarGlow 12s ease-in-out infinite alternate;
  border-right: 1px solid var(--sidebar-border);
  color: var(--text);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
@keyframes sidebarGlow { 0% {background-position:0% 0%;} 100% {background-position:0% 100%;} }

.sidebar .brand {
  padding: 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display:flex; align-items:center; justify-content:center; /* LOGO ORTALA */
  min-height: 100px;
}
.brand-logo { max-width: 170px; height:auto; display:block; filter: drop-shadow(0 2px 6px rgba(22,58,89,0.10)); }

.sidebar nav { padding: 10px; margin-top: 14px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap:14px; }

.menu-section { background: transparent; border-radius:12px; overflow:hidden; border:1px solid transparent; margin-bottom: 2px; }
.menu-section.open { border-color: var(--sidebar-border); background:#ffffffcf; }

.menu-header {
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px; cursor:pointer; color:#0f3054; font-weight:700;
  border-radius:12px;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.menu-header:hover { background: linear-gradient(90deg, #eaf4ff 0%, #fff3e8 100%); transform: translateY(-1px); }
.menu-header .chev { color:var(--muted); transition: transform .15s ease; }
.menu-section.open .menu-header .chev { transform: rotate(180deg); }

.submenu { display:none; padding: 8px 10px 12px 10px; }
.menu-section.open .submenu { display:block; }
.submenu a {
  display:block; padding:10px 12px; border-radius:10px; color:#163a59;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.submenu a:hover { background: linear-gradient(90deg, #eaf4ff 0%, #fff3e8 100%); color:#0f3054; transform: translateY(-1px); }
.submenu a.active { background:#ffe7d3; border-left:4px solid var(--accent); color:#8a3f00; }

/* İçerik alanı */
.admin-content {
  flex: 1; padding: 26px;
  display:flex; flex-direction:column;
  padding-bottom: 80px; /* fixed footer ile çakışmayı önle */
}
.admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 16px; }
.admin-topbar .title { font-size: 22px; font-weight: 800; color:#0f3054; }
.stat-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:14px; margin-top:18px; }
.stat-cards .card { padding:18px; }
.stat-label { color:var(--muted); font-size:13px; }
.stat-value { font-size:22px; font-weight:800; color:#0f3054; }

/* Footer: alt ve ortada sabit, bir tık koyu arkaplan */
.admin-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--sidebar-border);
  padding: 14px 0;
  text-align: center;                     /* ortala */
  box-shadow: 0 -2px 10px rgba(22,58,89,0.05);
  z-index: 10;
}
.admin-footer .footer-inner {
  display:inline-flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:center;
}
.admin-footer a { color: var(--footer-text); font-weight:700; }