/* ─────────────────────────────────────────────────
   Uras Teknik — Lift Bakım Sistemi
   Ana stil dosyası
───────────────────────────────────────────────── */

:root {
  --red: #27363f;
  --red-dark: #191c20;
  --navy: #27363f;
  --navy-mid: #191c20;
  --navy-border: rgba(255,255,255,0.1);
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 210px;
  --topbar-h: 56px;
}

/* ── Karanlık Mod ── */
[data-theme="dark"] {
  --bg: #0f1419;
  --bg-card: #1a1f26;
  --border: #2a313a;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --success-bg: #14331f;
  --warning-bg: #3a2c0a;
  --danger-bg: #3a1515;
  --info-bg: #142640;
}

/* Karanlık modda kart, tablo, input gibi yüzeyleri uyumla */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .login-right { background: var(--bg-card); }
[data-theme="dark"] .data-table thead th { background: #141a21; color: var(--text-muted); }
[data-theme="dark"] .data-table tbody tr:hover { background: transparent; }
[data-theme="dark"] .data-table tbody tr:hover td { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .btn-secondary:hover { background: #2d353f; }
[data-theme="dark"] .btn-outline:hover { background: #232a33; color: var(--text); }
[data-theme="dark"] .check-item:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #141a21;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .btn-secondary {
  background: #232a33;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .data-table tbody td { border-bottom-color: var(--border); }
[data-theme="dark"] .topbar { border-color: var(--border); }

/* ── Karanlık mod: kart başlıkları, etiketler, açık yüzeyler ── */
/* Servis formu lift kartı başlığı */
.lift-card-header { background: #f9fafb; }
[data-theme="dark"] .lift-card-header { background: #141a21 !important; }

/* card-header genel (varsa açık zemin) */
[data-theme="dark"] .card-header { background: transparent; border-color: var(--border); }

/* Mavi bilgi etiketleri (şube, rol vb.) — açık modda açık mavi, karanlıkta koyu mavi */
.branch-tag { background: #eff6ff; color: #2563eb; }
[data-theme="dark"] .branch-tag { background: #1c2c44 !important; color: #93c5fd !important; }

/* Inline açık arka planları karanlıkta bastır (mavi/gri rozetler, kutucuklar) */
[data-theme="dark"] [style*="background:#eff6ff"],
[data-theme="dark"] [style*="background: #eff6ff"] {
  background: #1c2c44 !important;
  color: #93c5fd !important;
}
[data-theme="dark"] [style*="background:#eef2f5"],
[data-theme="dark"] [style*="background: #eef2f5"],
[data-theme="dark"] [style*="#eef2f5)"] {
  background: #232a33 !important;
  color: var(--text) !important;
}
[data-theme="dark"] [style*="background:#f9fafb"],
[data-theme="dark"] [style*="background: #f9fafb"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"] {
  background: #141a21 !important;
}
/* Açık sarı uyarı kutusu (profil bilgilendirme) karanlıkta koyulaşsın */
[data-theme="dark"] [style*="background:#fffbeb"],
[data-theme="dark"] [style*="background: #fffbeb"] {
  background: #2a2410 !important;
  border-color: #4a3f1a !important;
}
[data-theme="dark"] .detail-row { border-color: var(--border); }
[data-theme="dark"] .empty-state { color: var(--text-muted); }

/* Tema geçiş butonu */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

/* ── Layout ────────────────────────────────────── */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow: hidden;   /* nav kendi içinde scroll eder, user bölümü sabit kalır */
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;  /* sadece menü scroll eder */
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--navy-border);
}

.sidebar-logo-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
}
.sidebar-logo a, .mobile-topbar a { display: inline-block; line-height: 0; }
.sidebar-logo a:hover, .mobile-topbar a:hover { opacity: 0.85; transition: opacity 0.15s; }

.logo-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}

.logo-brand {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 9.5px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}


.nav-section-label {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 2px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.nav-item.active { background: rgba(142,161,174,0.18); color: #8ea1ae; border-right-color: #8ea1ae; }
.nav-item i { font-size: 16px; width: 18px; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--navy-border);
  flex-shrink: 0;        /* asla küçülmesin */
  background: var(--navy);
}

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.3); }

.btn-icon {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 16px; padding: 4px;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.btn-icon:hover { color: rgba(255,255,255,0.7); }

/* ── Main Content ──────────────────────────────── */

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

/* ── Topbar ────────────────────────────────────── */

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title { font-size: 16px; font-weight: 600; color: var(--text); }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* ── Content Area ──────────────────────────────── */

.content {
  padding: 20px 24px;
  flex: 1;
}

/* ── Stat Cards ─────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1; }
.stat-value.danger { color: var(--danger); }
.stat-value.warning { color: var(--warning); }
.stat-meta { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.stat-icon { display: none; }  /* yalnızca mobilde görünür */

/* ── Cards ──────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.card-body { padding: 16px; }

/* ── Table ──────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f9fafb; }

/* ── Status Badges ───────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-neutral { background: #f3f4f6;           color: var(--text-muted); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn i { font-size: 15px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-secondary { background: #fff; color: var(--text-muted); border-color: var(--border); }
.btn-secondary:hover { background: #f9fafb; color: var(--text); }

.btn-outline { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-outline:hover { background: #f3f4f6; color: var(--text); }

.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-sm { padding: 4px 10px; font-size: 12px; min-height: 28px; }
.btn-sm i { font-size: 13px; line-height: 1; }

/* Sadece ikon butonlar (metin olmayan) */
.btn-icon-only {
  padding: 5px 8px;
  min-width: 30px;
  min-height: 30px;
  justify-content: center;
}
.btn-icon-only i { font-size: 15px; }

/* ── Forms ───────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; }
.form-label.required::after { content: " *"; color: var(--red); }

.form-control {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.form-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.form-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

/* Checkbox kontrolü */
.check-group { display: flex; flex-direction: column; gap: 2px; }
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background 0.1s;
}
.check-item:hover { background: #f9fafb; }
.check-item label { font-size: 13px; color: var(--text); cursor: pointer; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--red); }

/* ── Form Row ────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Section divider ─────────────────────────────── */
.section-divider {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Alert ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
}
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger   { background: var(--danger-bg);  color: var(--danger); }

/* ── Chip / Model Tag ───────────────────────────── */
.model-chip {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-weight: 600;
}
[data-theme="dark"] .model-chip {
  background: #232a33;
  border-color: var(--border);
  color: #cbd5e1;
}

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-state i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(128,128,128,0.08);
  border: 1px solid var(--border);
}
.empty-state p {
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.5;
}
.empty-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
}
.empty-state .empty-title + p { margin-top: 6px; }
.empty-state .btn { margin-top: 18px; }

/* ── Details list ────────────────────────────────── */
.detail-row {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 160px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.detail-value { flex: 1; color: var(--text); }

/* ── Login page ──────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--navy);
}

.login-left {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
}

.login-brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0.25;
  margin-top: 40px;
}

.login-brand-item {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: var(--radius);
}

.login-right {
  width: 420px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-wrapper {
  width: 100%;
  max-width: 340px;
}

.login-logo {
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  margin-bottom: 12px;
}

.login-logo-brand { font-size: 20px; font-weight: 700; color: var(--navy); }
.login-logo-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.login-title { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.validation-summary { 
  background: var(--danger-bg);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 16px;
  list-style: none;
}
/* Boş (hatasız) validation summary'yi gizle — boş kırmızı şerit çıkmasın */
.validation-summary-valid,
ul.validation-summary:empty {
  display: none;
}
.validation-summary-errors:not(:empty) {
  display: block;
}

/* ── Responsive ──────────────────────────────────── */
/* Mobil üst çubuk ve karartma — masaüstünde gizli */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 768px) {
  /* Sidebar kayan panel olur */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  /* Karartma */
  .sidebar-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }

  /* Mobil üst çubuk */
  .mobile-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; margin: -16px -16px 16px;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 900;
  }
  .mobile-menu-btn {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: rgba(128,128,128,0.12); color: var(--text);
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .mobile-topbar-logo { max-height: 30px; }

  /* Gösterge paneli: mobilde istatistikler tek sütun yatay kompakt kart */
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
  }
  .stat-card .stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    background: rgba(128,128,128,0.12);
  }
  .stat-card .stat-body { flex: 1; order: 2; }
  .stat-card .stat-label { margin-bottom: 2px; }
  .stat-card .stat-label i { display: none; }  /* ikon zaten solda stat-icon'da */
  .stat-card .stat-value { font-size: 24px; order: 3; margin-left: auto; }
  .stat-card .stat-meta { margin-top: 1px; }

  /* Mobilde ağır grafikleri gizle (küçük ekranda okunmuyor) */
  .hide-mobile { display: none !important; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { width: 100%; }

  /* Lift detay sayfası — mobilde tek sütun, fotoğraf tam otursun */
  /* İki sütun bilgi grid'leri mobilde tek sütun */
  .info-grid-2 { grid-template-columns: 1fr !important; gap: 12px !important; }

  .lift-detail-grid { grid-template-columns: 1fr !important; }
  .lift-status-strip { flex-direction: column !important; align-items: stretch !important; text-align: center; }
  .lift-status-strip .lift-detail-photo {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1;
    max-width: 260px; margin: 8px auto 0;
  }
  /* Admin bakım durumu kartı içi (bilgiler + foto) mobilde dikey */
  .lift-status-inner { flex-direction: column !important; }
  .lift-status-inner .lift-detail-photo {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1;
    max-width: 260px; margin: 12px auto 0;
  }

  /* Tablolar taşmasın — yatay kaydırma (etiketsiz tablolar için) */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }

  /* Kart görünümlü tablolar (data-label'lı) — mobilde her satır bir kart */
  .table-wrap.cards-wrap { overflow-x: visible; }
  .data-table.cards-mobile { min-width: 0; }
  .data-table.cards-mobile thead { display: none; }
  .data-table.cards-mobile,
  .data-table.cards-mobile tbody,
  .data-table.cards-mobile tr,
  .data-table.cards-mobile td { display: block; width: 100%; }
  .data-table.cards-mobile tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .data-table.cards-mobile td {
    border: none !important;
    padding: 6px 0 !important;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; text-align: right;
  }
  .data-table.cards-mobile td::before {
    content: attr(data-label);
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-align: left; flex-shrink: 0;
  }
  /* Etiketsiz (işlem/buton) hücre tam genişlik */
  .data-table.cards-mobile td[data-label=""] { justify-content: flex-end; }
  .data-table.cards-mobile td[data-label=""]::before { display: none; }
  .data-table.cards-mobile td[data-label=""] > div { width: 100%; justify-content: stretch; }
  .data-table.cards-mobile td[data-label=""] .btn { flex: 1; justify-content: center; }

  /* Topbar (sayfa başlıkları) dikey */
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.08);
  transform: scale(0.95);
  transition: transform 0.2s;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.modal-message {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 120px;
  justify-content: center;
}

.btn-success-modal {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn-success-modal:hover { background: #15803d; }

/* ── Uyarı Bandı (müşteri bakım uyarıları) ── */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-banner-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.alert-banner-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}
[data-theme="dark"] .alert-banner-danger {
  background: #2a1515;
  border-color: #7f1d1d;
  color: #fca5a5;
}
[data-theme="dark"] .alert-banner-warning {
  background: #2a2410;
  border-color: #78531a;
  color: #fcd34d;
}

/* Sıralanabilir tablo başlıkları */
.data-table.sortable thead th { transition: background 0.15s; }
.data-table.sortable thead th:hover { background: rgba(128,128,128,0.06); }
[data-theme="dark"] .data-table.sortable thead th:hover { background: rgba(255,255,255,0.04); }

/* ── Müşteri Liftlerim: şube grupları + resimli lift kartları ── */
.branch-group { margin-bottom: 14px; }
.branch-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.branch-header:hover { background: rgba(128,128,128,0.05); }
.branch-header .branch-count {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: rgba(128,128,128,0.12);
  padding: 2px 10px; border-radius: 20px;
}
.branch-header .branch-arrow { transition: transform 0.2s; color: var(--text-muted); }
.branch-header.open .branch-arrow { transform: rotate(180deg); }
.branch-header.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.branch-panel {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 16px;
  background: var(--bg);
  position: relative;
}

/* Kartlar yatay kaydırmalı şerit (Instagram tarzı). Kart boyutu grid ile aynı (200px). */
.lift-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.lift-grid::-webkit-scrollbar { height: 6px; }
.lift-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.lift-grid::-webkit-scrollbar-track { background: transparent; }

.lift-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.lift-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
[data-theme="dark"] .lift-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* Yarı şeffaf kaydırma okları (Instagram tarzı) */
.scroll-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, opacity 0.2s;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scroll-btn:hover { background: rgba(0,0,0,0.65); }
.scroll-btn.left { left: 8px; }
.scroll-btn.right { right: 8px; }
.scroll-btn i { font-size: 22px; }
.scroll-btn.hidden { opacity: 0; pointer-events: none; }

.lift-card-img {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg);
  overflow: hidden;
}
.lift-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lift-card-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); opacity: 0.4;
}
.lift-card-noimg i { font-size: 48px; }
.lift-card-status {
  position: absolute; top: 8px; right: 8px;
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}

.lift-card-body { padding: 12px 14px; }
.lift-card-title { font-family: monospace; font-weight: 700; font-size: 14px; }
.lift-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lift-card-more {
  font-size: 12px; color: var(--navy); font-weight: 600;
  margin-top: 10px; display: flex; align-items: center; gap: 4px;
}
[data-theme="dark"] .lift-card-more { color: #93b4c8; }

@media (max-width: 768px) {
  .lift-grid { gap: 10px; }
  .lift-card { flex: 0 0 150px; }
  .scroll-btn { display: none; }  /* mobilde parmakla kaydırılır */
}

/* Satır içi radyo seçenekleri (servis formu) */
.radio-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.radio-inline input { cursor: pointer; }

/* Bakım kontrol tablosu (servis formu Bölüm 3) */
.checklist-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.checklist-head, .checklist-row {
  display: grid;
  grid-template-columns: 2fr 70px 80px 75px 2fr;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}
.checklist-head {
  background: var(--bg); font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px;
}
.checklist-row { border-top: 1px solid var(--border); }
.checklist-row:nth-child(even) { background: rgba(128,128,128,0.02); }
.checklist-table .ct-radio { text-align: center; }
.checklist-table .ct-name { font-size: 12.5px; }
.checklist-table .ct-note {
  border: 1px solid var(--border); border-radius: 5px;
  padding: 4px 8px; font-size: 12px; background: var(--bg-card); color: var(--text);
}
.checklist-table input[type=radio] { cursor: pointer; }

@media (max-width: 768px) {
  .checklist-head { display: none; }
  .checklist-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; }
  .checklist-row .ct-name { grid-column: 1 / -1; font-weight: 600; }
  .checklist-row .ct-note { grid-column: 1 / -1; }
}

/* ── Email Bildirimleri — müşteri gruplu ferah düzen ── */
.reminder-summary {
  display: flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--radius-lg); padding: 10px 14px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 16px;
}
.reminder-summary strong { color: var(--text); }

.reminder-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
}
.reminder-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(128,128,128,0.04);
  border-bottom: 1px solid var(--border);
}
.rg-customer { display: flex; align-items: center; gap: 10px; }
.rg-customer > i { font-size: 18px; color: var(--text-muted); }
.rg-name { font-weight: 600; font-size: 14px; }
.rg-email {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-top: 1px;
}
.rg-email i { font-size: 12px; }
.rg-email.rg-noemail { color: var(--danger); }
.rg-count {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: rgba(128,128,128,0.12); padding: 3px 12px; border-radius: 20px;
  white-space: nowrap;
}

.reminder-lifts { padding: 4px 0; }
.reminder-lift-row {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.1fr 1.8fr auto;
  align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.reminder-lift-row:last-child { border-bottom: none; }
.reminder-lift-row:hover { background: rgba(128,128,128,0.03); }

.rl-lift { display: flex; flex-direction: column; gap: 1px; }
.rl-serial { font-family: monospace; font-weight: 600; font-size: 13px; }
.rl-brand { font-size: 11px; color: var(--text-muted); }

.rl-date { font-size: 13px; }
.rl-date .rl-label {
  display: block; font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.3px;
}

.rl-status { font-size: 12px; }
.rl-actions { display: flex; gap: 6px; justify-content: flex-end; }
.rl-actions form { margin: 0; }

@media (max-width: 900px) {
  .reminder-lift-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rl-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .rl-status { grid-column: 1 / -1; }
}

/* Email bildirimleri accordion (aç/kapa) */
.rg-toggle {
  width: 100%; text-align: left; cursor: pointer;
  background: rgba(128,128,128,0.04); border: none;
  font: inherit; color: inherit;
}
.rg-toggle:hover { background: rgba(128,128,128,0.08); }
.rg-right { display: flex; align-items: center; gap: 12px; }
.rg-arrow { transition: transform 0.2s ease; color: var(--text-muted); font-size: 16px; }
.rg-toggle.open .rg-arrow { transform: rotate(180deg); }

/* ═══ Dashboard modern stat kartları ═══ */
.stats-modern .stat-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  overflow: hidden;
  animation: statFadeIn 0.5s ease both;
  animation-delay: var(--sc-delay, 0s);
}
/* Üst renkli accent çizgisi */
.stats-modern .stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--sc-accent, #60a5fa);
  opacity: 0.9;
}
/* Köşe glow */
.stats-modern .stat-card::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--sc-accent, #60a5fa); opacity: 0.06;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stats-modern .stat-card:hover::after { opacity: 0.13; transform: scale(1.3); }
.stats-modern .stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-accent, #60a5fa);
}

.stat-icon-box {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sc-accent, #60a5fa) 14%, transparent);
  color: var(--sc-accent, #60a5fa);
  font-size: 22px;
}
.stat-icon-box i { display: block; }
.stats-modern .stat-body { display: flex; flex-direction: column; }
.stats-modern .stat-label { margin-bottom: 3px; }
.stats-modern .stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.stats-modern .stat-meta { margin-top: 2px; }

/* Renk varyantları */
.stats-modern .sc-blue  { --sc-accent: #3b82f6; }
.stats-modern .sc-blue  .stat-icon-box { background: rgba(59,130,246,0.15); }
.stats-modern .sc-green { --sc-accent: #10b981; }
.stats-modern .sc-green .stat-icon-box { background: rgba(16,185,129,0.15); }
.stats-modern .sc-amber { --sc-accent: #f59e0b; }
.stats-modern .sc-amber .stat-icon-box { background: rgba(245,158,11,0.15); }
.stats-modern .sc-red   { --sc-accent: #ef4444; }
.stats-modern .sc-red   .stat-icon-box { background: rgba(239,68,68,0.15); }

@keyframes statFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* color-mix desteklemeyen tarayıcılar için fallback */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .stat-icon-box { background: rgba(59,130,246,0.14); }
}

/* ═══ Dashboard grafik kartları modern ═══ */
.chart-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.chart-card:hover { transform: translateY(-2px); }

/* Grafik başlık ikonu (küçük renkli kutu) */
.ch-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  margin-right: 7px; font-size: 14px; vertical-align: middle;
}
.ch-ico i { display: block; }
.ch-ico-blue   { background: rgba(59,130,246,0.15); color: #3b82f6; }
.ch-ico-violet { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.card-title { display: inline-flex; align-items: center; }

/* Trend barları — gradient + hover */
.trend-bar {
  background: linear-gradient(180deg, #3b82f6, #1e40af);
  border-radius: 6px 6px 0 0;
  transition: height .4s cubic-bezier(0.22,1,0.36,1), filter .2s ease, transform .2s ease;
  box-shadow: 0 2px 6px rgba(59,130,246,0.25);
}
.trend-col:hover .trend-bar {
  filter: brightness(1.15);
  transform: scaleY(1.02);
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.trend-col:hover .trend-val { color: #3b82f6; }

/* ═══ Lift Takip Listesi — modern satırlar ═══ */
/* Müşteri baş harfi avatarı */
.cust-avatar {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.3px;
}

/* Sonraki bakım mini progress bar */
.maint-track {
  width: 100%; max-width: 110px; height: 4px;
  background: rgba(128,128,128,0.15); border-radius: 4px;
  margin-top: 5px; overflow: hidden;
}
.maint-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* Satır hover — yumuşak vurgu + hafif kalkma hissi */
.data-table tbody tr.track-row td {
  padding-top: 13px; padding-bottom: 13px;  /* daha ferah */
  transition: background 0.15s ease;
}
.data-table tbody tr.track-row:hover td {
  background: rgba(59,130,246,0.05);
}
[data-theme="dark"] .data-table tbody tr.track-row:hover td {
  background: rgba(59,130,246,0.08);
}
/* Sol kenarda hover'da renkli iz */
.data-table tbody tr.track-row td:first-child {
  position: relative;
  box-shadow: inset 3px 0 0 transparent;
  transition: box-shadow 0.15s ease;
}
.data-table tbody tr.track-row:hover td:first-child {
  box-shadow: inset 3px 0 0 #3b82f6;
}

/* Canlı durum rozetleri — yumuşak arka plan + nokta pulse */
.badge .badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
.badge-danger .badge-dot { animation: dotPulse 1.8s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}

/* ═══════════════════════════════════════════════════
   SİTE GENELİ MODERN İYİLEŞTİRMELER (3 panel ortak)
   ═══════════════════════════════════════════════════ */

/* Butonlar — hover'da hafif kalkma + gölge */
.btn-primary, .btn-danger {
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover, .btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-primary:active, .btn-danger:active { transform: translateY(0); }
.btn-secondary:hover, .btn-outline:hover { transform: translateY(-1px); }

/* Form inputları — focus'ta renkli halka (modern) */
.form-control:focus, .form-select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-control, .form-select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Kartlar — tutarlı yumuşak hover (tüm panellerde) */
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
[data-theme="dark"] .card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.35); }

/* Tablo başlıkları — daha rafine */
.data-table thead th {
  position: sticky; top: 0;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
}

/* Model chip — hafif renk tonu */
.model-chip {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  font-weight: 600;
}
[data-theme="dark"] .model-chip { background: rgba(59,130,246,0.15); }

/* Sayfa içeriği yumuşak beliriyor */
.content, .topbar + * {
  animation: pageIn 0.35s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sidebar nav item — hover'da yumuşak kayma */
.nav-item {
  transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
}
.nav-item:hover { padding-left: 18px; }

/* Boş durum ekranları — biraz daha canlı */
.empty-state i {
  opacity: 0.5;
  animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Genel yumuşak geçişler */
.badge { transition: transform 0.12s ease; }
.stat-card, .chart-card { will-change: transform; }
