/* ═══════════════════════════════════════════════════════════
   GrowthLab Studio — admin-extra.css
═══════════════════════════════════════════════════════════ */

/* ── Role badge ──────────────────────────────────────────── */
.role-badge {
  padding: .3rem .875rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: linear-gradient(135deg,#fbbf24,#d97706);
  color: #fff;
  flex-shrink: 0;
}

/* ── Mobile topbar ───────────────────────────────────────── */
.admin-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(10,8,24,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: .375rem;
  color: rgba(240,240,248,.7);
  display: flex;
  align-items: center;
}
.admin-hamburger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── Sidebar open on mobile ──────────────────────────────── */
@media (max-width: 768px) {
  .admin-mobile-topbar { display: flex; }
  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    z-index: 200;
    transition: left .3s ease;
    box-shadow: 4px 0 32px rgba(0,0,0,.5);
  }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: .75rem; }
}

/* ── Quick announcement buttons ──────────────────────────── */
.quick-ann-btn {
  padding: .5rem .875rem;
  border-radius: .625rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(124,58,237,.3);
  color: #a855f7;
  background: rgba(124,58,237,.08);
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s ease;
}
.quick-ann-btn:hover {
  background: rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.55);
  transform: translateY(-1px);
}

/* ── Admin toast animation ───────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Offer card glow ─────────────────────────────────────── */
.offer-active-glow {
  box-shadow: 0 0 32px rgba(124,58,237,.25);
  border-color: rgba(124,58,237,.3);
}

/* ══════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR — Homepage
══════════════════════════════════════════════════════════ */
#announcement-bar {
  width: 100%;
  padding: .625rem 1rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  position: relative;
  z-index: 200;
  flex-wrap: wrap;
}
#announcement-bar.show { display: flex; }
#announcement-bar.color-purple { background: linear-gradient(90deg,#4f46e5,#7c3aed,#4f46e5); color: #fff; }
#announcement-bar.color-green  { background: linear-gradient(90deg,#047857,#059669,#047857); color: #fff; }
#announcement-bar.color-red    { background: linear-gradient(90deg,#b91c1c,#ef4444,#b91c1c); color: #fff; }
#announcement-bar.color-orange { background: linear-gradient(90deg,#b45309,#d97706,#b45309); color: #fff; }
#announcement-bar.color-blue   { background: linear-gradient(90deg,#0e7490,#0891b2,#0e7490); color: #fff; }
.ann-link-btn {
  padding: .2rem .625rem;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.ann-link-btn:hover { background: rgba(255,255,255,.35); }
.ann-close {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: .25rem;
}
.ann-close:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   ANALYTICS CHART BARS
══════════════════════════════════════════════════════════ */
#status-chart, #service-chart { min-height: 180px; }

/* ══════════════════════════════════════════════════════════
   MINIMUM ORDER WARNING
══════════════════════════════════════════════════════════ */
.min-order-warning {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #f87171;
  display: none;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-weight: 600;
}
.min-order-warning.show { display: flex; }
.min-order-warning svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   ORDERS TABLE DATE COLUMN
══════════════════════════════════════════════════════════ */
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) { white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   POPUP OFFER MODAL
══════════════════════════════════════════════════════════ */
#offer-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#offer-popup-overlay.show { opacity: 1; pointer-events: all; }
.offer-popup-box {
  background: linear-gradient(135deg,rgba(15,12,40,.98),rgba(30,15,60,.98));
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(124,58,237,.35), 0 32px 64px rgba(0,0,0,.6);
  animation: popupIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes popupIn {
  from { transform: scale(.85) translateY(24px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.offer-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(240,240,248,.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.offer-popup-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.offer-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
  padding: .3rem .875rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.offer-popup-pct {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg,#c4b5fd,#a855f7,#7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}
.offer-popup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .625rem;
}
.offer-popup-desc {
  font-size: .875rem;
  color: rgba(240,240,248,.55);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.offer-popup-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: rgba(240,240,248,.55);
}
.offer-popup-cd {
  font-size: 1rem;
  font-weight: 700;
  color: #c4b5fd;
  font-family: 'Courier New', monospace;
}
