:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --muted: #6b7280;
  --text: #111827;
  --primary: #1d4ed8;
  --primary-700: #1e40af;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: #ffffff;
  --border: #e5e7eb;
}
/* Genel kapsayıcı ve buton/paginasyon stilleri */
.content .container { max-width: 1200px; margin: 0 auto; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:10px; text-decoration:none; font-weight:600; border:1px solid #e2e8f0; color:var(--text); background:#fff; }
.btn-light { background:#fff; color:var(--text); }
.btn-light:hover { background:#f3f4f6; }
.btn.btn-primary { width:auto; border:none; color:#fff; background: linear-gradient(90deg, var(--primary), var(--primary-700)); }
.btn.btn-primary:hover { filter: brightness(1.05); }
.pagination { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.pagination .btn { min-width:40px; }
@media (max-width: 768px) {
  .content .container { padding: 0 12px; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}
.login-visual {
  background: radial-gradient(800px 400px at 20% 20%, rgba(59,130,246,.28), transparent),
              radial-gradient(800px 400px at 80% 60%, rgba(16,185,129,.22), transparent),
              url('../images/maxbir.svg') center/contain no-repeat;
  position: relative;
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246,248,252,.45), rgba(246,248,252,.15));
}
.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.card {
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27,38,49,.08);
}
.card .header { padding: 24px 24px 0; }
.card .body { padding: 24px; }
.brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand .title { font-weight: 700; font-size: 19px; letter-spacing: 0.3px; color: #0f172a; }
.sub { color: #4b5563; font-size: 13px; letter-spacing: 0.2px; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
}
.form-row { display: grid; gap: 14px; }
.btn-primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-700));
  color: white;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); cursor: pointer; }
.note { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* Layout */
.app {
  display: grid; grid-template-columns: 260px 1fr; min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: #1e293b;
  color: #fff;
  padding: 1.5rem 1rem;
  transition: all 0.3s;
  position: sticky; 
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

/* Mobil menü toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header img { height: 40px; margin-right: 10px; }
.sidebar-header h1 { font-size: 1.2rem; font-weight: 600; margin: 0; color: #fff; }

.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links a i { margin-right: 0.75rem; font-size: 1.25rem; font-style: normal; }

/* Mobil of-canvas sidebar */
@media (max-width: 768px) {
  .app { grid-template-columns: 1fr; }
  .mobile-menu-toggle { display: block; }
  .sidebar { 
    width: 85%; 
    max-width: 320px; 
    padding: 1rem; 
    position: fixed; 
    left: 0; 
    top: 0; 
    height: 100vh; 
    transform: translateX(-100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
}

.content {
  padding: 24px; 
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid #e2e8f0; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 22px; font-weight: 700; }
.kpi .trend { font-size: 12px; color: var(--success); }

.grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card-header { font-weight: 700; color: #0f172a; letter-spacing: 0.2px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.content h1 { font-size: 24px; font-weight: 700; color: #0f172a; letter-spacing: 0.2px; margin: 0 0 12px; }
.content h2 { font-size: 20px; font-weight: 700; color: #0f172a; letter-spacing: 0.2px; margin: 0 0 10px; }
.content h3 { font-size: 18px; font-weight: 600; color: #111827; letter-spacing: 0.1px; margin: 0 0 8px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e2e8f0; }
.table thead th { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; background: #f3f4f6; color: #111827; }
.table th { color: var(--muted); font-weight: 600; text-align: left; }

/* Görsel boyutlandırma */
.logo { width: 64px; height: 64px; border-radius: 2px; object-fit: cover; border: 1px solid #e2e8f0; background: #fff; }
.avatar { width: 80px; height: 80px; border-radius: 100%; object-fit: cover; border: 1px solid #e2e8f0; background: #fff; }

@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .content { padding-top: 64px; }
  /* Mobilde grid ile hazırlanan formları tek sütuna indir */
  .content form[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Mobilde tablolar yatay taşmayı engellesin */
  .table { display: block; overflow-x: auto; }
  .kpis { grid-template-columns: 1fr; }
}
.btn-sm { padding: 4px 8px; font-size: 12px; border-radius:8px; }
.pagination { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.pagination .btn { min-width: 32px; padding:4px 8px; font-size:12px; }
.cards-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metrics { display:grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top:8px; }
.metric .label { color: var(--muted); font-size: 12px; }
.metric .value { font-weight: 600; }
@media (max-width: 1024px){ .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .cards-grid { grid-template-columns: 1fr; } .metrics { grid-template-columns: 1fr; } }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; background: rgba(0,0,0,0.5); }
.modal.open { display: flex; }
.modal .dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: min(720px, 94vw); max-height: 88vh; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.modal .header { display:flex; justify-content:space-between; align-items:center; padding:16px; border-bottom:1px solid var(--border); }
.modal .footer { display:flex; justify-content:flex-end; gap:8px; padding:16px; border-top:1px solid var(--border); }
.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; padding:16px; }
.form-grid .field { display:flex; flex-direction:column; gap:6px; }
.radio-group { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
