/* Firma paneli ve süper admin */
:root { --side: #1f2937; --side-active: #f97316; }
.admin { --side: #111827; --side-active: #6366f1; }

.panel-body { background: #f3f4f6; min-height: 100vh; }
.sidebar {
  width: 250px; min-height: 100vh;
  background: var(--side) !important; color: #fff;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.1); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }
.min-w-0 { min-width: 0; }
.sidebar-nav { padding: 12px 10px; gap: 2px; list-style: none; margin: 0; }
.sidebar-nav .nav-link {
  color: rgba(255,255,255,.75); border-radius: 8px; padding: 9px 12px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav .nav-link.active { background: var(--side-active); color: #fff; }

.panel-main { padding: 24px; min-width: 0; max-width: 1200px; }
@media (max-width: 575px) { .panel-main { padding: 16px; } }

.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: 12px; }
.stat-card .stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }

.thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  background: #e5e7eb; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af;
  flex-shrink: 0;
}
.thumb-lg { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.drag-handle { cursor: grab; color: #9ca3af; padding: 4px; }
.sortable-ghost { opacity: .4; }
.sortable-row { background: #fff; }
.table > :not(caption) > * > * { vertical-align: middle; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar span.fill { width: 100%; background: var(--side-active); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-chart .bar small { font-size: .65rem; color: #6b7280; margin-top: 4px; white-space: nowrap; }
.bar-chart .bar b { font-size: .7rem; color: #374151; }

.impersonate-bar { background: #fde68a; color: #78350f; padding: 6px 16px; font-size: .9rem; text-align: center; }

.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #1f2937, #f97316);
}
.auth-body.admin-auth { background: linear-gradient(135deg, #111827, #6366f1); }
.auth-card { width: 100%; max-width: 420px; border-radius: 16px; }

.qr-box { background: #fff; padding: 16px; border-radius: 12px; display: inline-block; }
.qr-box svg { display: block; width: 240px; height: 240px; }
.option-row + .option-row { margin-top: 8px; }
.form-text { font-size: .8rem; }
.table a, .list-group a { text-decoration: none; }
