

/* ═══════════════════════════════════════════════════════════
   RESTORED ADMIN PANEL CSS — desktop + mobile
   ═══════════════════════════════════════════════════════════ */

/* ── Flash messages (centered modal popup) ── */
.flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.flash-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.flash-modal {
  position: relative;
  max-width: 440px;
  width: 90%;
  padding: 28px 32px 24px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.95);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.flash-overlay.is-visible .flash-modal {
  transform: translateY(0) scale(1);
}
.flash-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: .45;
  transition: opacity .2s;
  padding: 4px 6px;
}
.flash-modal-close:hover { opacity: 1; }
.flash-modal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.flash-modal-body { flex: 1; min-width: 0; }
.flash-modal-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.flash-modal-msg { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; }

/* category colours */
.flash-modal.success {
  background: #ecfdf5;
  color: #14532d;
  border: 1px solid #86efac;
}
.flash-modal.success .flash-modal-icon {
  background: #dcfce7;
  color: #16a34a;
}
.flash-modal.danger {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}
.flash-modal.danger .flash-modal-icon {
  background: #fee2e2;
  color: #dc2626;
}
.flash-modal.warning {
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fde68a;
}
.flash-modal.warning .flash-modal-icon {
  background: #fef3c7;
  color: #d97706;
}
.flash-modal.info {
  background: #eff6ff;
  color: #1e3a5f;
  border: 1px solid #93c5fd;
}
.flash-modal.info .flash-modal-icon {
  background: #dbeafe;
  color: #2563eb;
}

/* auto-dismiss progress bar */
.flash-modal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: .2;
  width: 100%;
  transform-origin: left;
  animation: flash-progress 10s linear forwards;
}
.flash-modal.is-paused::after { animation-play-state: paused; }
@keyframes flash-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Empty state ── */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted, #94a3b8);
  font-size: 15px;
  border: 1px dashed var(--line, #e2e8f0);
  border-radius: var(--r, 14px);
  background: var(--surface-2, #f8fafc);
}
.empty i {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
  opacity: .5;
}