/* ==========================================================
   Subham Asthu — Phase 5: round brand logo, PDF logo,
   Admin Dashboard and Admin / Demo Controls. Loaded after style.css.
   ========================================================== */

/* Brand logo: round badge in the header (favicon and app icon use the same file) */
.lamp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #FFFFFF;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(122, 28, 28, 0.3);
}

/* PDF header logo, repeated on every page */
.pdf-logo {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

/* Admin / Demo Controls: one labelled block, removed when DEMO_CONTROLS is false */
.demo-controls {
  margin: 24px 0;
  padding: 14px 18px 18px;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: #FFF3D6;
}
.demo-controls .demo-banner {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}
.demo-controls .demo-bar { margin: 0 0 12px; padding: 0; border: 0; background: none; }

/* Admin dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.stat {
  padding: 14px 10px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF, var(--cream));
  text-align: center;
}
.stat strong { display: block; font-size: 2rem; line-height: 1.2; color: var(--maroon); }
.stat span { color: var(--muted); font-size: 1rem; font-weight: 600; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.vendor-form { display: grid; gap: 0 16px; margin-bottom: 16px; }
@media (min-width: 600px) {
  .vendor-form { grid-template-columns: repeat(2, 1fr); }
  .vendor-form .btn { grid-column: 1 / -1; justify-self: start; }
}

#admin-notice { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: rgba(197, 155, 39, 0.14); }
#admin-notice.is-error { background: rgba(161, 29, 29, 0.1); }

#admin-box .pooja-card .btn { min-width: 0; margin-top: 4px; }
#admin-box .pooja-card .soon { margin-top: 2px; }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.admin-table th, .admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--gold-soft);
  text-align: left;
  vertical-align: top;
}
.admin-table th { color: var(--maroon); font-weight: 700; }

/* Preview of a WhatsApp message (Tamil and English; CSS shows one at a time) */
.wa-text {
  margin: 8px 0 0;
  padding: 12px 14px;
  white-space: pre-wrap;
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  background: #FFFEFB;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
}
