/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800;900&display=swap');

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1f2937;
}

/* PPC branding */
.sidebar .logo {
  color: #f97316;
}

.login-card h1 {
  color: #f97316;
}

/* =========================
   Client GEN2 theme (photo)
   Applies ONLY under .theme-client
   ========================= */

.app-layout.theme-client {
  background: #fff5fa;
  color: #0f172a;
}

.theme-client .main-content {
  background: transparent;
  color: #0f172a;
  padding: 0;
}

.theme-client .client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f3dce7;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(219, 39, 119, 0.05);
}

.theme-client .client-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.theme-client .client-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.theme-client .client-brand-name {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #db2777;
}

.theme-client .client-brand-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde7f1;
  color: #db2777;
}

.theme-client .client-nav {
  display: inline-flex;
  gap: 8px;
}

.theme-client .client-nav button {
  border: 1px solid #eef2f6;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
}

.theme-client .client-nav button.active {
  border-color: #f9a8d4;
  background: #fde7f1;
  color: #db2777;
}

.theme-client .client-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.theme-client .client-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.theme-client .client-email { color: #db2777; }

.theme-client .client-validity { color: #db2777; }

.theme-client .client-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
}

.theme-client .client-logout:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

/* ===== Interface CLIENT — thème rose & blanc, épuré ===== */
.theme-client .client-copy-page {
  padding: 22px 20px 30px;
  background: linear-gradient(135deg, #fff5fa 0%, #ffffff 45%, #eff9ff 100%);
  min-height: 100%;
}

.theme-client .client-copy-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.theme-client .client-steps-panel {
  background: #ffffff;
  border: 1px solid #f3dce7;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 8px 26px rgba(219, 39, 119, 0.07);
}

.theme-client .client-step-head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #9d174d;
}

.theme-client .client-sync {
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #475569;
  background: #f8fafc;
}

.theme-client .client-sync.ok { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.theme-client .client-sync.warn { border-color: #fde68a; color: #92400e; background: #fffbeb; }
.theme-client .client-sync.bad { border-color: #fecaca; color: #991b1b; background: #fef2f2; }

.theme-client .client-sync-sub {
  margin-top: -6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.theme-client .client-sync-warning {
  margin-top: 2px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.theme-client .client-step-box {
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 14px;
  background: #fcfdfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.theme-client .client-step-box.done {
  border-color: #7dd3fc;
  background: #eff9ff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10);
}

.theme-client .client-step-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.theme-client .client-step-sub {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.theme-client .client-step-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #0369a1;
  background: #eff9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 7px 9px;
}

.theme-client .client-retry-btn {
  margin-top: 10px;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
}

.theme-client .client-retry-btn:disabled { opacity: .6; cursor: not-allowed; }

.theme-client .client-step-uid {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  color: #334155;
  font-size: 12px;
}

.theme-client .client-copy-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.28);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
}

.theme-client .client-copy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.34);
}

.theme-client .client-copy-btn:disabled {
  background: #f1d7e6;
  color: #ffffff;
  box-shadow: none;
  cursor: not-allowed;
}

.theme-client .client-step-warn {
  margin-top: 10px;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
}

.theme-client .client-copy-result {
  margin-top: 4px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.theme-client .client-copy-result.ok {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.theme-client .client-copy-result.err {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.theme-client .client-copy-wish {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #0369a1;
  background: #eff9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 10px;
}

.theme-client .client-copy-logs {
  margin-top: 6px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  background: #fcfdfe;
}

.theme-client .client-copy-logs-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9d174d;
  margin-bottom: 8px;
}

.theme-client .client-copy-logs-body {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #475569;
}

.theme-client .client-copy-center {
  display: grid;
  gap: 20px;
}

.theme-client .client-quota-panel {
  background: #ffffff;
  border: 1px solid #f3dce7;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: 0 8px 26px rgba(219, 39, 119, 0.07);
}

.theme-client .client-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.theme-client .client-ring svg {
  transform: rotate(-90deg);
}

.theme-client .client-ring-bg {
  fill: none;
  stroke: #f3e1ea;
}

.theme-client .client-ring-fg {
  fill: none;
  stroke: #db2777;
  stroke-linecap: round;
  transition: stroke-dasharray .5s ease;
}

.theme-client .client-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 42px;
  color: #db2777;
}

.theme-client .client-quota-stats {
  display: grid;
  gap: 10px;
}

.theme-client .client-quota-row {
  display: flex;
  justify-content: space-between;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
}

.theme-client .client-quota-bar {
  height: 10px;
  border-radius: 999px;
  background: #f3e1ea;
  overflow: hidden;
}

.theme-client .client-quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #db2777);
  border-radius: 999px;
  transition: width .5s ease;
}

.theme-client .client-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.theme-client .client-card {
  background: #ffffff;
  border: 1px solid #f3dce7;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.06);
  transition: transform .12s ease, box-shadow .2s ease;
}

.theme-client .client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.12);
}

.theme-client .client-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #fde7f1;
  color: #db2777;
  font-size: 20px;
}

/* Carte du milieu en bleu ciel (mix rose + bleu) */
.theme-client .client-card:nth-child(2) .client-card-icon {
  background: #e0f2fe;
  color: #0ea5e9;
}

.theme-client .client-card-value {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.theme-client .client-card-label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.theme-client .client-contact {
  max-width: 1040px;
  margin: 18px auto 0;
  background: #ffffff;
  border: 1px solid #f3dce7;
  border-radius: 16px;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.06);
}

.theme-client .client-contact-title {
  font-weight: 800;
  font-size: 13px;
  color: #db2777;
  margin-bottom: 4px;
}

.theme-client .client-contact-line {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.theme-client .client-contact-row {
  margin-top: 6px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.theme-client .client-contact-row a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.theme-client .client-contact-row span { color: #64748b; font-size: 12px; }

/* Responsive : colonnes empilées sur petit écran */
@media (max-width: 820px) {
  .theme-client .client-copy-grid { grid-template-columns: 1fr; }
  .theme-client .client-quota-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .theme-client .client-cards-row { grid-template-columns: 1fr; }
}

/* Admin Dashboard (Tableau de bord) */
.dash-page {
  display: grid;
  gap: 18px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.dash-title h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
}

.dash-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: dashPulse 1.2s ease-in-out infinite;
}

@keyframes dashPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.dash-user {
  position: relative;
}

.dash-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
}

.dash-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  z-index: 30;
}

.dash-user-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
}

.dash-user-item:hover {
  background: #f1f5f9;
}

.dash-cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}

.dash-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.dash-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fde7f1;
  color: #db2777;
}

.dash-card:nth-child(2) .dash-card-icon {
  background: #e0f2fe;
  color: #0ea5e9;
}

.dash-card-icon.success {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.dash-card-value {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.dash-card-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.dash-expiry.success {
  border-left: 4px solid #16a34a;
}

.dash-expiry.warning {
  border-left: 4px solid #f59e0b;
}

.dash-expiry.danger {
  border-left: 4px solid #dc2626;
}

.dash-chart {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dash-chart-head h2 {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.dash-toggle {
  display: inline-flex;
  gap: 8px;
}

.dash-toggle button {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: #0f172a;
}

.dash-toggle button.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.dash-chart-canvas {
  height: 340px;
}

/* Clients (Mes clients) */
.clients-page {
  display: grid;
  gap: 14px;
}

.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clients-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.clients-title h1 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.clients-count {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.clients-add.btn-primary {
  border-radius: 999px;
}

.clients-filters {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.clients-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  background: white;
  min-width: 200px;
}

.link {
  border: none;
  background: transparent;
  color: #ec4899;
  font-weight: 900;
  cursor: pointer;
}

.clients-table-wrap {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.clients-table tbody td {
  padding: 12px;
  font-size: 13px;
  color: #0f172a;
  border-bottom: 1px solid #eef2f7;
}

.clients-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.clients-table tbody tr:hover td {
  background: #eff6ff;
}

.clients-table .empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.active {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.badge.inactive {
  background: rgba(220, 38, 38, 0.10);
  color: #dc2626;
}

.actions {
  display: inline-flex;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.icon-btn:hover {
  background: #f8fafc;
}

.icon-btn.danger {
  border-color: rgba(220, 38, 38, 0.35);
  color: #dc2626;
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.page {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.page.active {
  background: #ec4899;
  color: white;
  border-color: #ec4899;
}

.page:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Client form */
.client-form-page {
  display: grid;
  gap: 14px;
}

.form-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.form-card h2 {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.form-error {
  color: #dc2626;
  font-weight: 900;
  font-size: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.btn-save {
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-actions .btn-cancel {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

/* Logs page */
.logs-page {
  display: grid;
  gap: 14px;
}

.logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logs-title {
  display: grid;
  gap: 6px;
}

.logs-title h1 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.logs-live {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #16a34a;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: white;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-dark:hover {
  background: #111827;
}

.logs-filters {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.link.gray {
  color: #64748b;
}

.logs-client-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #1e3a8a;
}

.logs-client-banner .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logs-table-wrap {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
}

.logs-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  padding: 12px;
  background: #e2e8f0; /* light blue-gray */
  border-bottom: 1px solid #e5e7eb;
}

.logs-table tbody td {
  padding: 12px;
  font-size: 13px;
  color: #0f172a;
  border-bottom: 1px solid #eef2f7;
}

.logs-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.logs-table tbody tr:hover td {
  background: #eff6ff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: #64748b;
}

.pill.ok {
  background: #16a34a;
}

.pill.fail {
  background: #dc2626;
}

@media (max-width: 1020px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Login (centered card) - Dark Theme */
body.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: #0a0a0a;
  overflow: hidden;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  padding: 20px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(108, 43, 217, 0.18);
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.login-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.login-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ec4899;
  display: inline-block;
}

.login-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e5e7eb;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #f97316;
  margin-bottom: 6px;
}

.login-title-logo-wrap {
  line-height: 0;
}

.login-title-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.login-subtitle {
  font-size: 12px;
  text-align: center;
  color: #6b7280;
  margin-bottom: 18px;
}

.login-section {
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 10px;
  text-align: left;
}

.login-input {
  width: 100%;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  background: #1f2937;
  color: #e5e7eb;
}

.login-input::placeholder {
  color: #6b7280;
}

.login-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(108, 43, 217, 0.18);
}

.login-forgot {
  text-align: right;
  margin-bottom: 14px;
}

.login-forgot-link {
  font-size: 12px;
  color: #ec4899;
  cursor: pointer;
  user-select: none;
}

.login-forgot-link:hover {
  color: #db2777;
}

.login-button {
  width: 100%;
  background: linear-gradient(135deg, #ec4899 0%, #0ea5e9 100%);
  color: white;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.login-button:hover {
  opacity: 0.9;
}

.login-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.login-error {
  margin-top: 12px;
  color: #fb7185;
  font-size: 13px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-align: left;
}

.login-remember input[type="checkbox"] {
  accent-color: #ec4899;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-remember label {
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
}

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

/* Sidebar — blanc, accents rose + bleu ciel */
.sidebar {
  width: 260px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-right: 1px solid #eef2f6;
  box-shadow: 2px 0 18px rgba(14, 165, 233, 0.05);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #eef2f6;
  text-align: center;
  background: linear-gradient(135deg, #fff5fa 0%, #eff9ff 100%);
}

.badge-admin {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #0ea5e9);
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: .08em;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
}

.user-status {
  font-size: 12px;
  color: #10b981;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  margin: 2px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
  color: #64748b;
}

.nav-item:hover {
  background: #eff9ff;
  color: #0369a1;
}

.nav-item.active {
  background: #fde7f1;
  color: #be185d;
  font-weight: 700;
  border-left: 3px solid #db2777;
}

.nav-label {
  flex: 1;
  margin-left: 12px;
  font-size: 14px;
}

.nav-arrow {
  opacity: 0.5;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  overflow-x: auto;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-top: 1px solid #334155;
}

.logout-btn:hover {
  background: #334155;
  color: white;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: #6b7280;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.btn-refresh:hover {
  background: #f9fafb;
}

.btn-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #10b981;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.btn-success:disabled {
  opacity: 0.7;
  cursor: default;
}

.hex-editor {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.hex-editor-title {
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.hex-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hex-sector {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.hex-sector-label {
  padding: 6px 10px;
  background: #0f172a;
  color: white;
  font-weight: 800;
  font-size: 12px;
}

.hex-sector-body {
  padding: 8px 10px;
}

.hex-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.hex-row:last-child {
  border-bottom: none;
}

.hex-block-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #64748b;
}

.hex-bytes {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #0f172a;
  white-space: pre;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-icon.blue {
  background: #fce7f3;
  color: #9d174d;
}

.stat-icon.green {
  background: #d1fae5;
  color: #065f46;
}

.stat-icon.orange {
  background: #fed7aa;
  color: #92400e;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
}

/* Recent Copies */
.recent-copies {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  white-space: nowrap;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.badge-blue {
  background: #fce7f3;
  color: #9d174d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
}

.data-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.uid {
  font-family: monospace;
  color: #ec4899;
  font-size: 13px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Buttons (Phase 4) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ec4899;
  color: white;
  border: 1px solid #ec4899;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  width: min(720px, 92vw);
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tab {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-weight: 700;
  color: #374151;
}

.tab.active {
  background: #eff6ff;
  border-color: #ec4899;
  color: #ec4899;
}

/* Animations */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.02); }
}

.nav-item {
  border-bottom: 1px solid #3d4446;
}

.nav-arrow {
  margin-left: auto;
  color: #636e72;
}

.nav-item.active {
  background: rgba(236, 72, 153, 0.18);
  border-left: 4px solid #ec4899;
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-text .number {
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.progress-text .total {
  font-size: 14px;
  color: var(--text-muted);
}

.quota-details {
  flex: 1;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span:first-child {
  color: var(--text-muted);
  font-size: 14px;
}

.mini-bar {
  width: 100px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar .fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--card);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.stat-icon.blue { background: #fce7f3; }
.stat-icon.green { background: #d1fae5; }
.stat-icon.orange { background: #fed7aa; }

.stat-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Copy Page */
.copy-page {
  max-width: 600px;
}

.quota-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.quota-big {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  opacity: 0.6;
  transition: all 0.3s;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 1;
}

.step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--warning);
  color: white;
}

.step-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.step-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
}

.action-zone {
  background: var(--card);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}

.card-icon {
  color: var(--border);
  margin-bottom: 16px;
}

.action-text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-copy {
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-copy:hover:not(:disabled) {
  background: #db2777;
}

.btn-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.result.success {
  background: #d1fae5;
  color: #065f46;
}

.result.error {
  background: #fee2e2;
  color: #991b1b;
}

/* Dump page banners + weekly table */
.dump-banner {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.dump-banner.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.dump-banner.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.manual-saved {
  font-size: 12px;
  color: #065f46;
  font-weight: 700;
  white-space: nowrap;
}

.weekly-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
}

.weekly-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  background: #f8fafc;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.weekly-table thead th.clickable {
  cursor: pointer;
  user-select: none;
}

.weekly-table tbody td {
  padding: 10px 12px;
  font-size: 13px;
  color: #0f172a;
  border-bottom: 1px solid #eef2f7;
}

.weekly-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.weekly-table tbody tr:last-child td {
  border-bottom: none;
}

/* Dump production (minimal, centered) */
.dump-prod {
  display: flex;
  justify-content: center;
}

.dump-prod-card {
  width: 100%;
  max-width: 760px;
}

.dump-info-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.dump-info-label {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dump-info-kpi {
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  margin-bottom: 6px;
}

.dump-info-big {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.dump-info-small {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.status-leds {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-led-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.05);
}

.led.green { background: #10b981; }
.led.red { background: #fb7185; }
.led.gray { background: #cbd5e1; }

/* Dashboard pro grid */
.dash-pro-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  align-items: start;
}

/* Dashboard calendar */
.dash-calendar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.dash-calendar {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
}

.react-calendar {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
}

.react-calendar__navigation {
  display: grid;
  grid-template-columns: 44px 44px 1fr 44px 44px;
  gap: 6px;
  margin-bottom: 10px;
}

.react-calendar__navigation button {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px;
  font-weight: 900;
  cursor: pointer;
}

.react-calendar__navigation button:disabled {
  opacity: 0.45;
  cursor: default;
}

.react-calendar__navigation__label {
  font-weight: 900;
}

.react-calendar__month-view__weekdays {
  text-transform: uppercase;
  font-size: 10px;
  color: #64748b;
  font-weight: 900;
}

.react-calendar__month-view__weekdays__weekday {
  padding: 8px 0;
}

.react-calendar__tile {
  border-radius: 10px;
  padding: 10px 6px;
  position: relative;
  font-weight: 800;
  color: #0f172a;
}

.react-calendar__tile:enabled:hover,
.react-calendar__tile:enabled:focus {
  background: #f1f5f9;
}

.react-calendar__tile--active {
  background: #fce7f3;
}

.react-calendar__tile--now {
  background: #eff6ff;
}

.react-calendar__tile.cal-valid {
  box-shadow: inset 0 0 0 2px #ec4899;
}

.react-calendar__tile.cal-valid.cal-sat {
  box-shadow: inset 0 0 0 2px #10b981;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.dash-day-details {
  min-width: 0;
}

.dash-day-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.dash-day-row {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.dash-pill.ok {
  background: #d1fae5;
  color: #065f46;
}

.dash-pill.fail {
  background: #ffe4e6;
  color: #9f1239;
}

.dash-day-time {
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.dash-day-status {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.dash-pro-main {
  grid-column: 1 / 2;
}

.dash-pro-right {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.dash-center {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
}

.dash-donut {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-donut-inner {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: white;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.dash-donut-num {
  font-weight: 900;
  font-size: 24px;
  color: #0f172a;
}

.dash-donut-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.dash-center-legend {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.dash-legend-row b { color: #0f172a; }

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.dash-dot.success { background: #10b981; }
.dash-dot.fail { background: #fb7185; }

.dump-bars {
  display: grid;
  gap: 10px;
}

.dump-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  gap: 10px;
  align-items: center;
}

.dump-bar-label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.dump-bar-num {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  text-align: right;
}

.dump-bar-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.dump-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.dump-bar-fill.success {
  background: #10b981;
}

.dump-bar-fill.fail {
  background: #fb7185;
}

/* Dashboard performance chips */
.perf-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.perf-chip.success {
  background: #d1fae5;
  color: #065f46;
}

.perf-chip.fail {
  background: #ffe4e6;
  color: #9f1239;
}

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .main-content {
    padding: 16px;
  }

  .page-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .recent-copies {
    padding: 16px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
}

/* Simple in-page dialog (window.prompt is not available in Electron) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-box h2 {
  margin: 0;
  font-size: 18px;
}

.modal-box p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dump-banner.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
