/* ============================================================
   Toem Bilişim — Profesyonel Kurumsal Tema (Açık)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Değişkenleri ──────────────────────────────────── */
:root {
  /* Arka planlar */
  --bg-main:    #f1f5f9;
  --bg-card:    #ffffff;
  --bg-input:   #f8fafc;
  --bg-hover:   #f8fafc;

  /* Sidebar */
  --sidebar-bg:      #0f172a;
  --sidebar-hover:   rgba(255,255,255,0.07);
  --sidebar-active:  rgba(99,102,241,0.2);
  --sidebar-border:  rgba(255,255,255,0.07);
  --sidebar-text:    rgba(255,255,255,0.7);
  --sidebar-text-active: #ffffff;

  /* Accent — Indigo */
  --accent:       #4f46e5;
  --accent-light: #6366f1;
  --accent-dark:  #3730a3;
  --accent-bg:    rgba(79,70,229,0.08);
  --accent-glow:  rgba(79,70,229,0.2);

  /* Durum renkleri */
  --green:        #10b981;
  --green-bg:     #ecfdf5;
  --green-border: #a7f3d0;
  --orange:       #f59e0b;
  --orange-bg:    #fffbeb;
  --orange-border:#fed7aa;
  --red:          #ef4444;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;
  --blue:         #3b82f6;
  --blue-bg:      #eff6ff;
  --blue-border:  #bfdbfe;
  --purple:       #8b5cf6;
  --purple-bg:    #f5f3ff;
  --purple-border:#ddd6fe;
  --yellow:       #f59e0b;
  --yellow-bg:    #fffbeb;

  /* Metin */
  --text-primary:   #1e293b;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;

  /* Kenarlık */
  --border:       #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #4f46e5;

  /* Gölge */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.12);

  /* Layout */
  --sidebar-width: 256px;
  --header-height: 60px;
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  14px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ─── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-logo .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.sidebar-logo .logo-wrap {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.sidebar-logo .logo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.sidebar-logo .brand-text .name {
  font-size: 14px; font-weight: 700;
  color: #ffffff; letter-spacing: -0.01em;
}
.sidebar-logo .brand-text .sub {
  font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px;
}

.nav { flex: 1; padding: 12px 10px; }
.nav-section { margin-bottom: 4px; }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  padding: 12px 8px 4px; display: block;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 7px;
  text-decoration: none; color: var(--sidebar-text);
  font-size: 13px; font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 1px;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active {
  background: var(--sidebar-active);
  color: #a5b4fc;
  font-weight: 600;
}
.nav-item .nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; padding: 1px 6px;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.4); }
.logout-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.35); font-size: 15px; padding: 4px;
  transition: color 0.2s; border-radius: 4px;
}
.logout-btn:hover { color: #fca5a5; }

/* ─── Ana İçerik ─────────────────────────────────────────── */
.main { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; }

.topbar {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text-primary); flex: 1; }
.topbar-subtitle { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

.page-content { flex: 1; padding: 24px; }

/* ─── Kartlar ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.card-body { padding: 20px; }

/* ─── İstatistik Kartları ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.stat-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* ─── Tablo ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
td { padding: 13px 16px; vertical-align: middle; color: var(--text-primary); }
.td-actions { display: flex; gap: 6px; align-items: center; }

/* ─── Rozetler (Badge) ───────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-orange { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.badge-purple { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid #fed7aa; }
.badge-gray   { background: #f8fafc;          color: var(--text-secondary); border: 1px solid var(--border); }

/* ─── Butonlar ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s ease;
  text-decoration: none; white-space: nowrap; letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(79,70,229,0.35); }
.btn-success { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.btn-success:hover { background: #d1fae5; }
.btn-danger  { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.btn-danger:hover  { background: #fee2e2; }
.btn-warning { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.btn-warning:hover { background: #fef3c7; }
.btn-ghost   { background: #fff; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-main); border-color: var(--border-hover); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 5px; }
.btn-icon { padding: 6px 8px; }

/* ─── Formlar ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 5px;
}
.form-control {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit; font-size: 13px;
  transition: all 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: #fff; color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.97) translateY(12px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 20px; line-height: 1;
  transition: color 0.2s; padding: 2px 6px; border-radius: 4px;
}
.modal-close:hover { color: var(--red); background: var(--red-bg); }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px; max-width: 360px;
  animation: slideIn 0.25s ease; font-size: 13px;
  color: var(--text-primary);
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--orange); }
.toast.info    { border-left: 3px solid var(--accent); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg  { flex: 1; line-height: 1.4; }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 15px;
  padding: 2px; line-height: 1;
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(110%); } }

/* ─── Sekme (Tab) ────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--bg-main); border-radius: 8px; }
.tab-btn {
  flex: 1; padding: 7px 12px; border: none; border-radius: 6px;
  background: none; cursor: pointer; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); font-family: inherit; transition: all 0.15s;
}
.tab-btn.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ─── Arama Çubuğu ───────────────────────────────────────── */
.search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap .search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); font-size: 13px;
}
.search-input-wrap input { padding-left: 32px; }

/* ─── Boş Durum ──────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.empty-state p { font-size: 13px; }

/* ─── Yükleniyor ─────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 36px; color: var(--text-muted); gap: 10px; font-size: 13px; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Sayfalama ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; padding: 14px; justify-content: center; }
.page-btn {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 12px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Fotoğraf Galerisi ──────────────────────────────────── */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px;
}
.photo-item {
  position: relative; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.photo-item:hover { box-shadow: var(--shadow); transform: scale(1.02); }
.photo-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-item .photo-delete {
  position: absolute; top: 4px; right: 4px;
  background: rgba(239,68,68,0.9); color: #fff;
  border: none; cursor: pointer; border-radius: 4px;
  font-size: 11px; padding: 2px 5px; display: none;
}
.photo-item:hover .photo-delete { display: block; }
.photo-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  text-align: center; font-size: 9px; font-weight: 700;
  padding: 3px;
  background: rgba(15,23,42,0.7); color: #fff; text-transform: uppercase;
}

/* ─── Giriş Sayfası ──────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-xl);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-img {
  width: 72px; height: 72px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  overflow: hidden;
}
.login-logo .logo-img img { width: 100%; height: 100%; object-fit: cover; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.login-logo p  { font-size: 13px; color: var(--text-secondary); }
.login-btn { width: 100%; padding: 11px; font-size: 14px; margin-top: 6px; justify-content: center; }

/* ─── Ayarlar Bölümü ─────────────────────────────────────── */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.settings-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
}
.settings-section-icon { font-size: 20px; }
.settings-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.settings-section-desc { font-size: 12px; color: var(--text-muted); }
.settings-section-body { padding: 20px; }

/* ─── Uyarı Kutuları ─────────────────────────────────────── */
.alert {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 13px; display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px;
}
.alert-info    { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.alert-warning { background: var(--orange-bg); color: #92400e;       border: 1px solid var(--orange-border); }
.alert-success { background: var(--green-bg);  color: #065f46;       border: 1px solid var(--green-border); }
.alert-danger  { background: var(--red-bg);    color: #991b1b;       border: 1px solid var(--red-border); }

/* ─── Logo Yükleyici ─────────────────────────────────────── */
.logo-uploader {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-input);
}
.logo-uploader:hover { border-color: var(--accent); background: var(--accent-bg); }
.logo-preview {
  max-width: 160px; max-height: 80px;
  object-fit: contain; margin-bottom: 10px;
  border-radius: 6px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --mobile-nav-height: 65px;
  }

  .sidebar { display: none; } /* Masaüstü sidebarını gizle */
  
  .main { 
    margin-left: 0; 
    padding-bottom: var(--mobile-nav-height); /* Alttaki menü için boşluk */
  }

  .topbar {
    padding: 0 16px;
    justify-content: center;
    text-align: center;
  }
  .topbar-title { font-size: 16px; }
  .topbar-subtitle { display: none; }

  .page-content { padding: 16px; }
  .stats-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
  }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }

  .form-row { grid-template-columns: 1fr; }
  
  /* Mobil alt menü */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--mobile-nav-height);
    background: #ffffff;
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    justify-content: space-around;
    align-items: center;
  }
  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 4px;
    height: 100%;
    transition: all 0.2s;
  }
  .mobile-nav-item .icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s;
  }
  .mobile-nav-item .label {
    font-size: 10px;
    font-weight: 600;
  }
  .mobile-nav-item.active {
    color: var(--accent);
  }
  .mobile-nav-item.active .icon {
    transform: translateY(-2px);
  }

  /* Kart düzenlemeleri */
  .card { border-radius: 12px; }
  .card-header { padding: 12px 16px; }
  
  /* Tablo mobil görünümü (isteğe bağlı: kart tipine çevirme) */
  .table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* Modal mobil uyumu */
  .modal {
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
    position: fixed;
    bottom: 0;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

/* Masaüstünde mobil menüyü gizle */
@media (min-width: 769px) {
  .mobile-nav { display: none; }
}

/* ─── Yardımcı Sınıflar ──────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--orange); }
.text-accent { color: var(--accent); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
