/* Admin interface styles */
body.admin-body {
  background: #f1f3f6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #1c2333;
  color: #e9ecf2;
  flex-shrink: 0;
}
.sidebar-brand { color: #fff; }
.sidebar .nav-link {
  color: #aeb6c8;
  border-radius: 0.5rem;
}
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sidebar .nav-link.active { background: #0d6efd; color: #fff; }

.admin-main { min-width: 0; }

.card {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.stat-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }

.org-logo-sm {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: #fff;
}

.logo-preview {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
}
.logo-preview-placeholder {
  width: 180px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f6;
  border-radius: 0.75rem;
  margin: 0 auto;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.platform-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qr-preview {
  max-width: 320px;
  width: 100%;
  image-rendering: pixelated;
}

.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
}

/* Login */
body.login-body { background: linear-gradient(135deg, #1c2333 0%, #2b3a67 100%); }
.login-card { border-radius: 1rem; }

@media (max-width: 767px) {
  .sidebar { width: 72px; padding: 0.75rem !important; }
  .sidebar .sidebar-brand span,
  .sidebar .nav-link { font-size: 0; }
  .sidebar .nav-link i { font-size: 1.2rem; margin: 0 !important; }
  .sidebar .small { display: none; }
}
