/**
 * Lead Panel - Koyu tema (PolluxUI tarzı dashboard)
 * Referans: koyu mor-gri arka plan, sidebar, header, kartlar
 */

:root {
  --sidebar-width: 260px;
  --topbar-height: 60px;
  --bg-dark: #1e1d2e;
  --bg-sidebar: #18172a;
  --bg-header: #222138;
  --bg-content: #252436;
  --bg-card: #2d2b42;
  --bg-card-hover: #34324a;
  --border-dark: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #6366f1;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;
  --accent-blue: #3b82f6;
  --card-radius: 12px;
  --font-base: 15px;
}

* { box-sizing: border-box; }

body {
  font-size: var(--font-base);
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--bg-content);
}
.text-muted { color: var(--text-dim) !important; }
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
.page-title, .content-area .card-title { color: var(--text-primary); }

/* ----- Login ----- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-dark);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 420px;
}
.login-card .card-body { padding: 2.5rem; }
.login-card .form-control {
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
}
.login-card .form-control::placeholder { color: var(--text-dim); }
.login-card .form-control:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
}
.login-card label { color: var(--text-muted); }
.login-card .btn-primary {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
}
.login-card .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
}
.login-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* ----- Layout ----- */
.app-wrapper { display: flex; min-height: 100vh; }
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  padding-bottom: 80px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-height: 100vh;
  background: var(--bg-content);
}
.content-area {
  max-width: 1600px;
  margin: 0 auto;
}

/* ----- Sidebar (koyu, referans gibi) ----- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-dark);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 1030;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sidebar-brand-text { display: flex; flex-direction: column; gap: 0; }
.sidebar-brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.sidebar-brand-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.sidebar-nav-block {
  padding: 1rem 0.75rem 0.5rem;
  flex-shrink: 0;
}
.sidebar-nav-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0 0.6rem 0.5rem;
  margin-bottom: 0.2rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sidebar-link.active {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.sidebar-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-link.active .sidebar-link-icon {
  background: rgba(99, 102, 241, 0.4);
}
.sidebar-link-text { flex: 1; }
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
}
.sidebar-footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

/* ----- Topbar (koyu bar, logo sol / kullanıcı sağ) ----- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.topbar-left { flex: 1; min-width: 0; }
.topbar-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.topbar-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 2px 0 0 0;
}
.topbar-right { display: flex; align-items: center; gap: 0.6rem; }
.topbar-today {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-right: 0.25rem;
}
.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.topbar-btn-bell { position: relative; }
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: 8px;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  margin-left: 0.25rem;
}
.topbar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-user-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.topbar-user-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.topbar-user-role {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.topbar-btn-logout { color: var(--text-muted); flex-shrink: 0; }
.topbar-btn-logout:hover { color: #f87171; background: rgba(248, 113, 113, 0.15); }

/* Notification dropdown (koyu) */
.notification-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  min-width: 320px;
  max-width: 380px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}
.notification-menu .dropdown-header {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 0 0.5rem 0.35rem;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  border: none;
}
.notification-menu .dropdown-header .badge { background: var(--accent) !important; }
.notification-item {
  white-space: normal;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin: 2px 6px;
  transition: background 0.2s;
  color: var(--text-primary);
}
.notification-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.notification-item .small { display: block; margin-top: 3px; color: var(--text-dim); }
.notification-menu .dropdown-divider { border-color: var(--border-dark); }
.notification-menu .text-muted { color: var(--text-dim) !important; }
.notification-menu .text-primary { color: var(--accent) !important; }

/* ----- Kartlar (koyu, yükseltilmiş) ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.card-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-dark);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
}
.card-body { padding: 1.25rem; color: var(--text-muted); }

/* İstatistik kartları */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); }
.stat-card .stat-label { font-size: 0.88rem; color: var(--text-dim); }

/* ----- Tablo (koyu arka plan, açık yazı) ----- */
.table-card .table,
.content-area .table,
.card .table {
  margin-bottom: 0;
  color: var(--text-primary);
  background: transparent !important;
}
.table-card .table th,
.table-card .table td,
.content-area .table th,
.content-area .table td,
.card .table th,
.card .table td {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-color: var(--border-dark) !important;
}
.table-card .table thead th,
.content-area .table thead th {
  border-bottom: 1px solid var(--border-card);
  font-weight: 600;
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.05) !important;
}
.table-card .table tbody td,
.content-area .table tbody td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-primary) !important;
  background: transparent !important;
}
.table-card .table tbody tr,
.content-area .table tbody tr {
  transition: background 0.15s;
  background: transparent !important;
}
.table-card .table tbody tr:hover,
.content-area .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
.content-area .table a,
.table-card .table a {
  color: var(--accent) !important;
}
.content-area .table a:hover,
.table-card .table a:hover {
  color: #a5b4fc !important;
}
.table-card .table .btn,
.content-area .table .btn {
  color: inherit;
}
.tr-UNTOUCHED { background: rgba(234, 179, 8, 0.12) !important; }
.tr-UNTOUCHED:hover { background: rgba(234, 179, 8, 0.18) !important; }
.tr-CALLED { background: rgba(34, 197, 94, 0.12) !important; }
.tr-CALLED:hover { background: rgba(34, 197, 94, 0.18) !important; }
.tr-WAITING_OFFER { background: rgba(139, 92, 246, 0.12) !important; }
.tr-WAITING_OFFER:hover { background: rgba(139, 92, 246, 0.18) !important; }
.tr-UNREACHABLE { background: rgba(107, 114, 128, 0.15) !important; }
.tr-UNREACHABLE:hover { background: rgba(107, 114, 128, 0.22) !important; }

/* Badges */
.badge-status { font-size: 0.72rem; padding: 0.35em 0.6em; font-weight: 600; border-radius: 6px; }
.badge-UNTOUCHED { background: #eab308; color: #1c1917; }
.badge-CALLED { background: #22c55e; color: #fff; }
.badge-WAITING_OFFER { background: #8b5cf6; color: #fff; }
.badge-UNREACHABLE { background: #64748b; color: #fff; }
.btn-bildir { font-weight: 500; }
.offer-row { cursor: pointer; }
.offer-row.row-copied { background: rgba(34, 197, 94, 0.2) !important; box-shadow: inset 0 0 0 2px #22c55e; }

/* Toast */
.copy-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-header);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.copy-toast.copy-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-toast i { color: #4ade80; margin-right: 0.5rem; }

/* Bildirim uyarı toast (sayfa değişmeden) */
.notification-toast {
  position: fixed;
  top: calc(var(--topbar-height, 60px) + 12px);
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.3s, transform 0.3s;
}
.notification-toast.notification-toast-show {
  opacity: 1;
  transform: translateX(0);
}
.notification-toast i { color: var(--accent); }
.notification-toast-action {
  margin-left: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}
.notification-toast:hover .notification-toast-action { background: rgba(99, 102, 241, 0.4); }
@media (max-width: 576px) {
  .notification-toast { right: 10px; left: 10px; padding: 0.75rem 1rem; }
}

/* ----- Formlar ----- */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  color: var(--text-primary);
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-label { color: var(--text-muted); }
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; min-height: 32px; }
.btn-outline-danger {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
}
.btn-outline-danger:hover { background: rgba(248, 113, 113, 0.15); border-color: #f87171; color: #f87171; }
.btn-outline-primary { border-color: var(--accent); color: var(--accent); }
.btn-outline-primary:hover { background: rgba(99, 102, 241, 0.2); color: var(--accent); }
/* Bildir (warning) – koyu tema */
.btn-warning {
  background: rgba(245, 158, 11, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #1c1917;
}
.btn-warning:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1c1917;
}
.btn-outline-warning {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}
.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fcd34d;
}
/* Tablo aksiyon butonları – hizalı ve uyumlu */
.table-actions { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.table-actions .btn { flex-shrink: 0; }
.table-actions form { display: inline-flex; margin: 0; }
.table-actions .btn-outline-danger { padding: 0.4rem 0.65rem; }
.table-actions .btn-outline-danger .fa { margin: 0; }
.table-actions .btn-bildir { white-space: nowrap; }

/* Kopyalanacak sütun seçimi (lead listesi) */
.copy-col-label { cursor: pointer; font-weight: inherit; white-space: nowrap; }
.copy-col-label .copy-col-cb { cursor: pointer; margin-right: 4px; }

/* Banka logosu (lead listesi) */
.bank-cell { vertical-align: middle; }
.bank-logo {
  display: inline-block;
  max-height: 28px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Filtre bar */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.filter-bar .form-control, .filter-bar .form-select { font-size: 0.9rem; }
.filter-bar .form-label { color: var(--text-dim); }

/* Lead geçmişi – görsel timeline */
.offer-timeline {
  position: relative;
  padding-left: 0;
}
.offer-timeline-line {
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border-dark));
  border-radius: 1px;
  pointer-events: none;
}
.offer-timeline-empty {
  padding: 1rem 0;
  font-size: 0.95rem;
}
.offer-timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-bottom: 1.25rem;
}
.offer-timeline-item:last-child { padding-bottom: 0; }
.offer-timeline-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-content);
}
.offer-timeline-dot.timeline-assigned  { border-color: var(--accent-blue); color: var(--accent-blue); }
.offer-timeline-dot.timeline-status   { border-color: var(--accent-orange); color: var(--accent-orange); }
.offer-timeline-dot.timeline-note      { border-color: var(--accent-teal); color: var(--accent-teal); }
.offer-timeline-dot.timeline-reviewed { border-color: #22c55e; color: #22c55e; }
.offer-timeline-content {
  flex: 1;
  min-width: 0;
  margin-left: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
}
.offer-timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.offer-timeline-action {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.offer-timeline-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.offer-timeline-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.offer-timeline-note {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Alert */
.alert { border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.alert-info { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.15); color: #86efac; }

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 1010;
  padding: 0.65rem 1.5rem;
  background: var(--bg-header);
  border-top: 1px solid var(--border-dark);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.footer-made-with { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.footer-love-text { color: var(--text-dim); font-weight: 500; }
.footer-heart { color: #f87171; font-size: 0.95rem; animation: footer-heartbeat 1.2s ease-in-out infinite; }
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.footer-signature { font-size: 0.88rem; color: var(--text-dim); }
.footer-signature::before { content: ""; color: var(--text-muted); }
.footer-name { color: var(--text-muted); font-weight: 600; }
@media (max-width: 991.98px) { .app-footer { left: 0; } }

/* Modal */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.modal-header {
  border-bottom: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}
.modal-body { color: var(--text-muted); }
.modal-footer { border-top: 1px solid var(--border-dark); background: rgba(255, 255, 255, 0.02); }
.modal .btn-close { filter: invert(1); opacity: 0.7; }

/* Table borderless (detail sayfası) */
.table-borderless td { color: var(--text-primary); }
.table-borderless .text-muted { color: var(--text-dim) !important; }

/* Responsive */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1025;
  transition: opacity 0.2s;
}
body.sidebar-open .sidebar-overlay { display: block; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 1rem; padding-top: var(--topbar-height); }
  .topbar { left: 0; padding: 0 1rem; }
  .topbar-user-meta { display: none; }
  .topbar-user { padding: 0.3rem 0.5rem; }
  .topbar-subtitle { display: none; }
  .topbar-today { display: none; }
  .topbar-title { font-size: 1.05rem; }
  .table-card .table { font-size: 0.88rem; }
}
@media (max-width: 576px) {
  :root { --font-base: 14px; }
  .stat-card .stat-value { font-size: 1.5rem; }
}
