/* ============================================================
   REKLAMPORT - Kapalı Alan Reklam Yönetim Sistemi
   Design System v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  /* Core Palette */
  --ink:        #0d0f14;
  --ink-90:     #1a1d25;
  --ink-70:     #2e3340;
  --ink-40:     #6b7280;
  --ink-20:     #9ca3af;
  --ink-10:     #e5e7eb;
  --paper:      #f8f7f4;
  --white:      #ffffff;

  /* Brand */
  --brand:      #e84c1e;
  --brand-dark: #c23a12;
  --brand-soft: #fde8e2;
  --gold:       #f59e0b;
  --gold-soft:  #fef3c7;
  --teal:       #0d9488;
  --teal-soft:  #ccfbf1;

  /* Status */
  --success:    #16a34a;
  --danger:     #dc2626;
  --warning:    #d97706;
  --info:       #2563eb;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(13,15,20,0.08), 0 1px 2px rgba(13,15,20,0.04);
  --shadow-md:  0 4px 12px rgba(13,15,20,0.10), 0 2px 4px rgba(13,15,20,0.06);
  --shadow-lg:  0 12px 32px rgba(13,15,20,0.14), 0 4px 8px rgba(13,15,20,0.08);
  --shadow-brand: 0 4px 20px rgba(232,76,30,0.30);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms cubic-bezier(.16,1,.3,1);

  /* Sidebar */
  --sidebar-w: 260px;
  --topbar-h:  64px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ─── Layout Shell ───────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--t-slow);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--ink-70); border-radius: 4px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-brand-logo {
  width: 38px; height: 38px;
  background: var(--brand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.sidebar-brand-text h1 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: white; letter-spacing: -0.02em;
}
.sidebar-brand-text span {
  font-size: 10px; color: var(--ink-20);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.sidebar-section-label {
  padding: 18px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-40);
}

.sidebar-nav { padding: 6px 12px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink-20);
  font-size: 14px;
  font-weight: 400;
  transition: all var(--t-fast);
  margin-bottom: 2px;
  position: relative;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-nav a.active {
  background: var(--brand);
  color: white;
  font-weight: 500;
  box-shadow: var(--shadow-brand);
}
.sidebar-nav a .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0; opacity: 0.8;
}
.sidebar-nav a.active .nav-icon { opacity: 1; }
.sidebar-nav a .nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.sidebar-user:hover { background: rgba(255,255,255,0.06); }
.sidebar-avatar {
  width: 34px; height: 34px;
  background: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 500; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--ink-40); }

/* ─── Main Content ───────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky; top: 0;
  z-index: 50;
}
.topbar-hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-40);
  transition: all var(--t-fast);
}
.topbar-hamburger:hover { background: var(--ink-10); color: var(--ink); }
.topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.topbar-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-40);
}
.topbar-breadcrumb span { color: var(--ink-20); }
.topbar-breadcrumb a:hover { color: var(--brand); }

.topbar-spacer { flex: 1; }

.topbar-search {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-xl);
  padding: 6px 14px;
  gap: 8px;
  width: 220px;
  transition: all var(--t-fast);
}
.topbar-search:focus-within {
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px var(--brand-soft);
  width: 260px;
}
.topbar-search input {
  border: none; background: none;
  font-size: 13px; color: var(--ink);
  width: 100%; outline: none;
}
.topbar-search svg { color: var(--ink-20); flex-shrink: 0; }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--ink-40);
  transition: all var(--t-fast);
  position: relative;
}
.topbar-icon-btn:hover { background: var(--ink-10); color: var(--ink); }
.topbar-icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--brand); border-radius: 50%;
  border: 2px solid white;
}

/* ─── Page Content ───────────────────────────────────────── */
.page-content { padding: 28px; flex: 1; }
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-header-left h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.page-header-left p {
  font-size: 14px; color: var(--ink-40);
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--brand));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat-card.gold { --card-color: var(--gold); }
.stat-card.teal { --card-color: var(--teal); }
.stat-card.info { --card-color: var(--info); }

.stat-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stat-icon {
  width: 42px; height: 42px;
  background: var(--brand-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.stat-card.gold .stat-icon { background: var(--gold-soft); color: var(--gold); }
.stat-card.teal .stat-icon { background: var(--teal-soft); color: var(--teal); }
.stat-card.info .stat-icon { background: #dbeafe; color: var(--info); }

.stat-change {
  font-size: 12px; font-weight: 500;
  padding: 3px 8px; border-radius: 20px;
}
.stat-change.up { background: #dcfce7; color: var(--success); }
.stat-change.down { background: #fee2e2; color: var(--danger); }

.stat-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--ink-40); }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink-10);
}
.card-header h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card-body { padding: 24px; }
.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--ink-10);
  background: var(--paper);
}

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr {
  background: var(--paper);
  border-bottom: 2px solid var(--ink-10);
}
thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--ink-10);
  transition: background var(--t-fast);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--paper); }
tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
}

/* ─── Badges & Tags ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #dbeafe; color: #1d4ed8; }
.badge-ink     { background: var(--ink-10); color: var(--ink-40); }
.badge-brand   { background: var(--brand-soft); color: var(--brand-dark); }
.badge-teal    { background: var(--teal-soft); color: var(--teal); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  transition: all var(--t-fast);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--brand); color: white;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--ink-10); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-20); background: var(--paper); }
.btn-ghost { color: var(--ink-40); }
.btn-ghost:hover { background: var(--ink-10); color: var(--ink); }
.btn-danger { background: #fee2e2; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-success { background: #dcfce7; color: var(--success); border-color: #bbf7d0; }
.btn-success:hover { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-icon { padding: 8px; border-radius: var(--r-md); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label .required { color: var(--brand); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-control::placeholder { color: var(--ink-20); }
.form-control:disabled { background: var(--paper); color: var(--ink-40); cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--ink-40); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }
.form-control.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px #fee2e2; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.form-section { margin-bottom: 28px; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-10);
}

/* ─── Map Container ──────────────────────────────────────── */
.map-container {
  width: 100%; border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-sm);
}

/* ─── Progress Bars ──────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--ink-10);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width var(--t-slow);
}
.progress-fill.gold { background: var(--gold); }
.progress-fill.teal { background: var(--teal); }
.progress-fill.info { background: var(--info); }

/* ─── Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  background: var(--brand);
  color: white;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; }

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,15,20,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--r-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(12px);
  transition: transform var(--t-slow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-10);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em;
}
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ink-10);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 2px;
  background: var(--ink-10);
  padding: 4px;
  border-radius: var(--r-md);
  width: fit-content;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  color: var(--ink-40);
  transition: all var(--t-fast);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #fed7aa; color: #b45309; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ─── Specific: Building Card ────────────────────────────── */
.building-card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-10);
  overflow: hidden;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.building-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-soft);
}
.building-card-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-70) 100%);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.building-card-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: white;
}
.building-card-city { font-size: 12px; color: var(--ink-20); margin-top: 2px; }
.building-card-body { padding: 16px 18px; }
.building-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 14px;
}
.building-meta-item { text-align: center; }
.building-meta-val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--ink);
}
.building-meta-lbl { font-size: 11px; color: var(--ink-40); }
.building-availability {
  margin-top: 12px;
}
.availability-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-40);
  margin-bottom: 6px;
}

/* ─── Elevator Slot ──────────────────────────────────────── */
.elevator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.elevator-slot {
  border-radius: var(--r-md);
  border: 2px solid var(--ink-10);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}
.elevator-slot:hover { border-color: var(--brand); }
.elevator-slot.available { border-color: var(--teal); background: var(--teal-soft); }
.elevator-slot.occupied { border-color: var(--brand); background: var(--brand-soft); }
.elevator-slot.expired { border-color: var(--ink-10); background: var(--paper); opacity: 0.6; }
.elevator-slot-icon { font-size: 24px; margin-bottom: 4px; }
.elevator-slot-label { font-size: 11px; font-weight: 600; color: var(--ink); }
.elevator-slot-sub { font-size: 10px; color: var(--ink-40); }

/* ─── Revenue Widget ─────────────────────────────────────── */
.revenue-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-10);
}
.revenue-item:last-child { border-bottom: none; }
.revenue-label { font-size: 14px; color: var(--ink); }
.revenue-sub { font-size: 12px; color: var(--ink-40); margin-top: 1px; }
.revenue-amount {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--success);
}
.revenue-amount.debit { color: var(--danger); }

/* ─── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
}
.login-visual {
  flex: 1;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.login-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(232,76,30,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 50%);
}
.login-visual-content { position: relative; z-index: 1; max-width: 400px; }
.login-visual h2 {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800; color: white;
  line-height: 1.1; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.login-visual h2 span { color: var(--brand); }
.login-visual p { color: var(--ink-20); font-size: 15px; line-height: 1.7; }

.login-form-panel {
  width: 440px; min-width: 440px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  background: var(--paper);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 40px;
}
.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--brand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 20px; color: white;
  box-shadow: var(--shadow-brand);
}
.login-logo h1 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: var(--ink);
}
.login-box { width: 100%; }
.login-box h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.03em; margin-bottom: 6px;
}
.login-box p { font-size: 14px; color: var(--ink-40); margin-bottom: 30px; }

/* ─── Tooltips ───────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: white;
  font-size: 12px; padding: 5px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity var(--t-fast);
  z-index: 999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ─── Utilities ──────────────────────────────────────────── */
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--ink-40); }
.text-brand  { color: var(--brand); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }
.mt-auto { margin-top: auto; }
.d-flex  { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .topbar-hamburger { display: flex; }
  .topbar-search { display: none; }
  .login-visual { display: none; }
  .login-form-panel { width: 100%; min-width: 0; padding: 40px 24px; }
  .page-content { padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
  .tabs { flex-wrap: wrap; }
}

/* ─── Sidebar Overlay (mobile) ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
@media (max-width: 900px) {
  .sidebar-overlay.open { display: block; }
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeSlideIn 0.4s cubic-bezier(.16,1,.3,1) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── Ek Yardımcı Sınıflar ─────────────────────────────── */
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger  { color: #ef4444; }
.text-center  { text-align: center; }
.w-full       { width: 100%; }
.p0           { padding: 0; }

/* Badge ek */
.badge-info      { background: #eff6ff; color: #1d4ed8; }
.badge-secondary { background: #f3f4f6; color: #374151; }
.badge-warning   { background: #fffbeb; color: #92400e; }

/* Teal soft */
:root {
  --teal-soft: #f0fdfa;
  --teal: #0d9488;
}

/* Form actions */
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }

/* User cell */
.user-cell { display: flex; align-items: center; gap: .625rem; }
.avatar {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; flex-shrink: 0;
}

/* Actions */
.actions { display: flex; gap: .375rem; align-items: center; }

/* Btn danger ghost */
.btn-danger-ghost { color: #ef4444; }
.btn-danger-ghost:hover { background: #fef2f2; color: #dc2626; }

/* Btn sizes */
.btn-sm { padding: .3rem .65rem; font-size: .78rem; }

/* Card header */
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: .9rem; font-weight: 600; }

/* Alert */
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Özet satır */
.ozet-satir { display: flex; justify-content: space-between; font-size: .9rem; }

/* Progress */
.progress { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; transition: width .4s ease; }
