/* ============================================================
   index.css — JMPL Inventory Tracking System
   Premium Mobile-Only / Mobile-First Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #f8fafc;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --card-bg:       var(--bg-card);
  --bg-glass:      rgba(255, 255, 255, 0.85);
  --bg-hover:      rgba(37, 99, 235, 0.08);
  --bg-input:      #f1f5f9;

  --accent-blue:   #2563eb;
  --accent-teal:   #0d9488;
  --accent-purple: #7c3aed;
  --accent-amber:  #d97706;
  --accent-red:    #dc2626;
  --accent-green:  #16a34a;

  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;

  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --sidebar-w:     0px; /* Force to 0px so main doesn't have offset */
  --sidebar-drawer-w: 270px;
  --header-h:      60px;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     20px;

  --shadow-card:   0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-glow:   0 0 20px rgba(37, 99, 235, 0.06);
  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden; /* Lock the viewport scrolling globally */
}
html { font-size: 15px; } /* Slightly smaller default base size for mobile */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

#app, #login-page {
  width: 100%;
  height: 100%; /* Lock height to 100% of body parent */
  position: relative;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent scrolling outside the main content panel */
}

/* ── Responsive Shell (Permanent Sidebar on Desktop, Drawer on Mobile) ── */

/* Custom Scrollbar for App and Bezel viewports */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* ── Login Screen (Mobile Native Optimized) ─────────────────── */
#login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: radial-gradient(ellipse at 50% 20%, rgba(79,142,247,0.12) 0%, transparent 70%),
              var(--bg-primary);
  padding: 20px;
  overflow-y: auto;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: transparent; /* Seamless transparent login form */
  border: none;
  box-shadow: none;
  position: relative;
  animation: fadeInUp 0.4s ease;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(79,142,247,0.25);
}
.login-logo h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.login-logo h1 span { color: var(--accent-blue); }
.login-logo p { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.login-error {
  background: rgba(255,71,87,0.12);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ── App Shell ─────────────────────────────────────────────── */
#app {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

/* ── Sidebar (Absolute Mobile Drawer) ──────────────────────── */
#sidebar {
  width: var(--sidebar-drawer-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: var(--transition);
  overflow-y: auto;
}
#sidebar.open {
  transform: translateX(0);
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}
.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand .brand-text h2 { font-size: 15px; font-weight: 700; }
.sidebar-brand .brand-text p { font-size: 11px; color: var(--text-secondary); }
.sidebar-nav { padding: 8px 0; flex: 1; }
.nav-section-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px 20px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-item.active {
  color: var(--accent-blue);
  background: rgba(79,142,247,0.08);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent-blue);
  border-radius: 0 2px 2px 0;
}
.nav-item .nav-icon { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.user-details h4 { font-size: 12.5px; font-weight: 600; }
.user-details p { font-size: 10.5px; color: var(--text-secondary); }

/* ── Main Content Container ────────────────────────────────── */
#main {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
}
#top-bar {
  height: var(--header-h);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0; z-index: 50;
  gap: 12px;
}
#top-bar-title { font-size: 16px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
#sidebar-toggle {
  display: inline-flex !important; /* Force visible on all viewports */
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-size: 18px;
}
.top-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(79,142,247,0.12);
  color: var(--accent-blue);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Global Search Styling */
#global-search-container {
  transition: max-width 0.2s ease;
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 768px) {
  #top-bar-title {
    display: none !important;
  }
  #global-search-container {
    max-width: none !important;
    margin: 0 4px !important;
  }
  #global-search-input {
    font-size: 11.5px !important;
  }
}
#content {
  padding: 16px;
  flex: 1;
}

/* ── Cards (Mobile Compacted) ──────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-header h3 { font-size: 13.5px; font-weight: 700; }
.card-body { padding: 16px; }

/* ── Stat Cards Grid (Mobile 2-Column) ─────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.dashboard-stats-grid-3, .dashboard-stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.blue::before  { background: var(--accent-blue); }
.stat-card.teal::before  { background: var(--accent-teal); }
.stat-card.amber::before { background: var(--accent-amber); }
.stat-card.red::before   { background: var(--accent-red); }
.stat-card.green::before { background: var(--accent-green); }
.stat-card.purple::before { background: var(--accent-purple); }

.stat-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.stat-value.blue   { color: var(--accent-blue); }
.stat-value.teal   { color: var(--accent-teal); }
.stat-value.amber  { color: var(--accent-amber); }
.stat-value.red    { color: var(--accent-red); }
.stat-value.green  { color: var(--accent-green); }
.stat-value.purple { color: var(--accent-purple); }
.stat-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #3a7de8);
  color: #fff;
  box-shadow: 0 4px 10px rgba(79,142,247,0.2);
}
.btn-teal {
  background: linear-gradient(135deg, var(--accent-teal), #00b896);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,212,170,0.15);
}
.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #e0394a);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,71,87,0.15);
}
.btn-amber {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #fff;
  box-shadow: 0 4px 10px rgba(245,158,11,0.15);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-xs { padding: 4px 8px; font-size: 10.5px; border-radius: 4px; }

/* ── Form Layout Stack (Mobile-Optimized) ──────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.form-label .required { color: var(--accent-red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(79,142,247,0.1);
}
.form-row, .form-row-3 {
  display: grid;
  grid-template-columns: 1fr !important; /* Stack vertically on mobile */
  gap: 12px !important;
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.form-hint { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }

/* ── Tables Horizontal Scroll (Mobile-First) ───────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
}
table.data-table {
  width: 100%;
  min-width: 680px; /* Slightly compact for mobile horizontal scrolling */
  border-collapse: collapse;
}
table.data-table th {
  background: var(--bg-secondary);
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data-table td {
  padding: 10px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}

/* ── Search & Filter Bar (Stretch to width) ────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  width: 100%;
}
.filter-bar .form-control {
  flex: 1;
  min-width: 110px;
  max-width: none;
}
.search-input {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: none;
}
.search-input input { padding-left: 32px; }
.search-input .search-icon {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Tabs Horizontal Swipe (Sticky to top) ──────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  position: sticky;
  top: var(--header-h); /* Sticks directly below the fixed header top-bar */
  z-index: 40;
  background: var(--bg-primary); /* Blend scrolling items underneath it */
  padding: 8px 0;
}
.tab-btn {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  font-family: inherit;
  flex-shrink: 0;
}
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Modals (Fixed containment inside viewport/frame) ──────── */
.modal-overlay {
  position: fixed; /* Lock overlay fixed within viewport or local translated frame */
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-body { padding: 16px; overflow-y: auto; }
.modal-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed; /* Pinned fixed within viewport or local frame */
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  animation: toastIn 0.25s ease;
  pointer-events: all;
  backdrop-filter: blur(20px);
}
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error   { border-color: rgba(255,71,87,0.3); }
.toast.warning { border-color: rgba(245,158,11,0.3); }
.toast-icon { font-size: 16px; }
.toast-msg { font-size: 12px; font-weight: 500; }

/* ── Reports Stack Layout ──────────────────────────────────── */
.reports-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Badges & Chips ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
}
.badge-blue   { background: rgba(79,142,247,0.12);  color: var(--accent-blue);  border: 1px solid rgba(79,142,247,0.25); }
.badge-green  { background: rgba(16,185,129,0.12); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.25); }
.badge-amber  { background: rgba(245,158,11,0.12);  color: var(--accent-amber); border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: rgba(255,71,87,0.12);   color: var(--accent-red);   border: 1px solid rgba(255,71,87,0.25); }
.badge-purple { background: rgba(124,99,247,0.12);  color: var(--accent-purple); border: 1px solid rgba(124,99,247,0.25); }
.badge-gray   { background: rgba(148,163,184,0.1);  color: var(--text-secondary); border: 1px solid var(--border); }

.stage-chip {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.stage-chip.production  { background: rgba(124,99,247,0.15); color: var(--accent-purple); }
.stage-chip.cryogenic   { background: rgba(79,142,247,0.15);  color: var(--accent-blue); }
.stage-chip.deflashing  { background: rgba(245,158,11,0.12);  color: var(--accent-amber); }
.stage-chip.waiting-trimming { background: rgba(148,163,184,0.15); color: #94a3b8; }
.stage-chip.trimming    { background: rgba(0,212,170,0.12);   color: var(--accent-teal); }
.stage-chip.post-curing { background: rgba(239,68,68,0.12);    color: #f87171; }
.stage-chip.waiting-visual { background: rgba(148,163,184,0.15); color: #94a3b8; }
.stage-chip.visual      { background: rgba(16,185,129,0.12);  color: var(--accent-green); }
.stage-chip.gauge       { background: rgba(124,99,247,0.1);   color: #a78bfa; }
.stage-chip.quality     { background: rgba(255,71,87,0.1);    color: var(--accent-red); }
.stage-chip.store       { background: rgba(16,185,129,0.15);  color: var(--accent-green); }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.status-dot.active   { background: var(--accent-amber); }
.status-dot.completed { background: var(--accent-green); }
.status-dot.rejected { background: var(--accent-red); }

.loss-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--accent-red); font-weight: 600; }
.gain-tag { font-size: 11px; color: var(--accent-green); font-weight: 600; }

/* ── Permissions Pills ──────────────────────────────────────── */
.perm-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-pill input[type=checkbox] { display: none; }
.perm-pill label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.perm-pill input:checked + label {
  background: rgba(79,142,247,0.12);
  color: var(--accent-blue);
  border-color: rgba(79,142,247,0.35);
}

/* ── Dashboard Grid Layout ─────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack vertically always */
  gap: 16px;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes fadeInUp  { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideIn   { from { opacity:0; transform:scale(0.97) } to { opacity:1; transform:scale(1) } }
@keyframes toastIn   { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes pulse     { 0%,100%{opacity:1} 50%{opacity:0.5} }
.animate-in { animation: fadeInUp 0.25s ease; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-secondary); }
.text-danger { color: var(--accent-red); }
.text-success { color: var(--accent-green); }
.text-blue { color: var(--accent-blue); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; display: block; }
  #sidebar, #top-bar, .no-print { display: none !important; }
  #main { margin-left: 0; height: auto; overflow: visible; }
  .card { border: 1px solid #ddd; box-shadow: none; }
  table.data-table thead th { background: #f3f4f6; color: #374151; }
}

/* Pulsing Indicators */
.pulse-green {
  animation: pulse-green-anim 1.8s infinite;
}
@keyframes pulse-green-anim {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-amber {
  animation: pulse-amber-anim 1.8s infinite;
}
@keyframes pulse-amber-anim {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-red-glow {
  animation: pulse-red-anim 1.8s infinite;
}
@keyframes pulse-red-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

