@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green-deep: #00703C;
  --green-mid: #2d9b5a;
  --green-light: #54b666;
  --green-pale: #e6f5ec;
  --green-glow: rgba(0, 112, 60, 0.12);
  --cream: #fafaf7;
  --white: #ffffff;
  --ink: #0f1f14;
  --ink-soft: #3a4a40;
  --muted: #7a8c80;
  --border: #d8e8dc;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-card: 0 4px 24px rgba(0,112,60,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7%;
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.5px;
}

.branding img { height: 38px; width: 38px; object-fit: contain; }

.nav-right { display: flex; align-items: center; gap: 8px; }

.nav-right a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.nav-right a:hover { color: var(--green-deep); background: var(--green-pale); }
.nav-right a.alert { background: var(--green-deep); color: white !important; font-weight: 600; }
.nav-right a.alert:hover { background: var(--green-mid); }

.show-login {
  background: transparent;
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
  padding: 7px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.show-login:hover { background: var(--green-deep); color: white; }

/* ── AUTH POPUP (LOGIN/SIGNUP MODAL) ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 12, 0.60);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-overlay.active { opacity: 1; pointer-events: all; }

.auth-popup {
  background: #fff;
  border-radius: 22px;
  padding: 40px 36px 32px;
  width: 430px;
  max-width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Styling */
.form-element { margin-bottom: 14px; }
.form-element label { display: block; font-size: 0.76rem; font-weight: 700; color: #444; text-transform: uppercase; margin-bottom: 6px; }
.form-element input { width: 100%; padding: 11px 14px; border: 1.5px solid #d8e8dc; border-radius: 8px; outline: none; }
.form-element input:focus { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(84,182,102,0.14); }

.btn-primary {
  width: 100%; height: 46px; border: none; background: var(--green-deep); color: #fff; 
  font-weight: 600; border-radius: 10px; cursor: pointer; transition: 0.2s;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: var(--muted);
  padding: 30px 7%;
  text-align: center;
  font-size: 0.875rem;
  margin-top: auto; /* Pushes footer to bottom */
}

/* ── SHARED REACTION SYSTEM (For Alerts & Reviews) ── */
.reaction-container { position: relative; display: inline-flex; }
.reactions-popover {
  position: absolute; bottom: 100%; left: 0; background: white; border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; padding: 5px 10px; gap: 8px;
  visibility: hidden; opacity: 0; transform: translateY(10px); transition: 0.2s ease; z-index: 10;
}
.reaction-container:hover .reactions-popover { visibility: visible; opacity: 1; transform: translateY(-5px); }
.react-emoji { cursor: pointer; font-size: 1.5rem; transition: 0.2s; }
.react-emoji:hover { transform: scale(1.3); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-right a:not(.alert):not(.show-login) { display: none; }
}


.alerts-layout {
  flex: 1; 
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
  align-items: start;
}

@media (max-width: 1100px) {
  .alerts-layout { grid-template-columns: 200px 1fr; }
  .alerts-sidebar-right { display: none; }
}
@media (max-width: 720px) {
  .alerts-layout { grid-template-columns: 1fr; padding: 16px; }
  .alerts-sidebar-left { display: none; }
}

.admin-panel {
  background: linear-gradient(135deg, #0f1f14, #1a3a22);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-deep);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0,112,60,0.4);
}
.admin-name { display: block; font-weight: 700; font-size: 0.92rem; color: white; }
.admin-role { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 1px; }
.admin-quick-stats {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}
.qs { text-align: center; }
.qs span { display: block; font-weight: 700; font-size: 1.2rem; color: var(--green-light); }
.qs small { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }


.guest-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
}
.guest-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  font-size: 1.3rem;
  margin: 0 auto 10px;
}
.guest-msg { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 6px; }
.guest-hint { font-size: 0.78rem; color: var(--muted); }


.sidebar-links {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.side-link:hover { background: var(--green-pale); color: var(--green-deep); }
.side-link.active { background: var(--green-pale); color: var(--green-deep); border-left-color: var(--green-deep); font-weight: 700; }
.side-link i { width: 16px; text-align: center; }


.alerts-main { min-width: 0; }

.alerts-header { margin-bottom: 22px; }
.alerts-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.alerts-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.alerts-title i { color: var(--green-deep); }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0f0;
  color: #e05555;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
}
.live-badge i { font-size: 0.5rem; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.alerts-sub { font-size: 0.88rem; color: var(--muted); }


.alert-compose {
  background: linear-gradient(135deg, #fff 60%, #f0faf4 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--green-light);
  box-shadow: 0 8px 32px rgba(0,112,60,0.12);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}
.alert-compose::before {
  content: 'ADMIN ONLY';
  position: absolute;
  top: -1px; right: 16px;
  background: var(--green-deep);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
}

.compose-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.compose-admin-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f1f14, #2d9b5a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.compose-admin-name { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.compose-posting-as { display: block; font-size: 0.75rem; color: var(--green-deep); font-weight: 600; }

.alert-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);

  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);

  resize: vertical;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;

  box-sizing: border-box;
}

.alert-textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 4px rgba(84, 182, 102, 0.15);
  background: #fff;
}

.alert-textarea::placeholder {
  color: #a8b5ac;
}


.alert-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.type-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.type-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.type-pill {
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink-soft);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.type-pill:hover { border-color: var(--green-light); color: var(--green-deep); background: var(--green-pale); }
.type-pill.active { background: var(--green-deep); color: white; border-color: var(--green-deep); font-weight: 600; }




.priority-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #e07040;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border: 1.5px solid #f0c8a0;
  border-radius: 20px;
  background: #fff8f0;
  transition: all 0.2s;
  user-select: none;
}
.priority-toggle:has(input:checked) { background: #ffe8d0; border-color: #e07040; }
.priority-toggle input { display: none; }
.alert-photo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--green-deep);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--cream);
  transition: all 0.2s;
}
.alert-photo-label:hover { background: var(--green-pale); border-color: var(--green-light); }



/* Photo preview */
.alert-photo-preview-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}
.alert-photo-preview-wrap img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1.5px solid var(--border);
}
.remove-photo {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.remove-photo:hover { background: rgba(220,60,60,0.85); }

/* Footer */
.alert-compose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.alert-char-count { font-size: 0.8rem; color: var(--muted); }
.alert-char-count.warn { color: #e07040; }
.alert-char-count.over { color: #e05555; font-weight: 700; }

.btn-post-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green-deep);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0,112,60,0.22);
}
.btn-post-alert:hover:not(:disabled) { background: var(--green-mid); transform: translateY(-1px); }
.btn-post-alert:disabled { opacity: 0.45; cursor: not-allowed; }

/* Non-admin notice */
.user-notice {
  background: var(--green-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.87rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.user-notice i { color: var(--green-deep); }
.user-notice a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.user-notice a:hover { text-decoration: underline; }


.alert-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.alert-filter {
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink-soft);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.alert-filter:hover { background: var(--green-pale); border-color: var(--green-light); color: var(--green-deep); }
.alert-filter.active { background: var(--green-deep); color: white; border-color: var(--green-deep); font-weight: 600; }


.feed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--green-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-alerts {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.no-alerts i { font-size: 2.5rem; opacity: 0.35; display: block; margin-bottom: 12px; }
.no-alerts p { font-size: 0.95rem; }


.alert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
  animation: slideIn 0.3s ease;
  position: relative;
  overflow: visible;
  z-index: 1;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.alert-card:hover {
    z-index: 10;
}

.alert-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.alert-card[data-type="announcement"]::before { background: var(--green-deep); }
.alert-card[data-type="promo"]::before         { background: #f5a623; }
.alert-card[data-type="available"]::before     { background: #27ae60; }
.alert-card[data-type="unavailable"]::before   { background: #e05555; }
.alert-card[data-type="reminder"]::before      { background: #3498db; }


.alert-card.urgent {
  border-color: #f5a623;
  background: linear-gradient(135deg, #fff 80%, #fffaf0 100%);
}
.urgent-ribbon {
  display: none;
  position: absolute;
  top: 8px; right: -22px;
  background: #f5a623;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 28px;
  transform: rotate(45deg);
}
.alert-card.urgent .urgent-ribbon { display: block; }


.alert-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.alert-icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}
.icon-announcement { background: linear-gradient(135deg, var(--green-light), var(--green-deep)); }
.icon-promo         { background: linear-gradient(135deg, #f5c842, #f5a623); }
.icon-available     { background: linear-gradient(135deg, #27ae60, #1a7a40); }
.icon-unavailable   { background: linear-gradient(135deg, #e07070, #e05555); }
.icon-reminder      { background: linear-gradient(135deg, #74b9e8, #3498db); }

.alert-meta { flex: 1; min-width: 0; }
.alert-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 2px;
}
.badge-announcement { background: var(--green-pale); color: var(--green-deep); }
.badge-promo         { background: #fff8e0; color: #c47a00; }
.badge-available     { background: #e6f9ee; color: #1a7a40; }
.badge-unavailable   { background: #fee8e8; color: #c03030; }
.badge-reminder      { background: #e8f4fd; color: #1a70b0; }

.alert-poster-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.alert-poster-row i { font-size: 0.7rem; color: var(--green-deep); }
.alert-poster-row strong { color: var(--ink-soft); }

.alert-stall-tag {
  font-size: 0.72rem;
  background: var(--green-pale);
  color: var(--green-deep);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}


.alert-options { position: relative; }
.btn-options {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-options:hover { background: var(--green-pale); color: var(--green-deep); }
.options-menu {
  position: absolute;
  top: 100%; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  z-index: 50;
  display: none;
  overflow: hidden;
}
.options-menu.open { display: block; animation: fadeDown 0.15s ease; }
@keyframes fadeDown { from { opacity:0;transform:translateY(-4px); } to { opacity:1;transform:translateY(0); } }
.options-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}
.options-menu button:hover { background: var(--green-pale); color: var(--green-deep); }
.options-menu button.danger:hover { background: #fef0f0; color: #e05555; }


.alert-body {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 12px;
  word-break: break-word;
  white-space: pre-wrap;
  padding-left: 52px;
}
.alert-body-img {
  width: 100%;
  margin-left: 0;
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.alert-body-img:hover { opacity: 0.92; }

/* Footer row */
.alert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.alert-time { font-size: 0.78rem; color: var(--muted); }
.alert-reactions { display: flex; align-items: center; gap: 4px; }
.btn-react {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 16px;
  transition: all 0.2s;
}
.btn-react:hover { background: var(--green-pale); color: var(--green-deep); }
.btn-react.reacted { color: #e05555; }
.btn-react.reacted i { color: #e05555; }
.btn-pin {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 16px;
  transition: all 0.2s;
}
.btn-pin:hover { background: var(--green-pale); color: var(--green-deep); }
.btn-pin.pinned { color: #f5a623; }



.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.pinned-list { display: flex; flex-direction: column; gap: 8px; }
.pinned-item {
  padding: 8px 10px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--green-deep);
  line-height: 1.45;
  cursor: pointer;
  transition: background 0.15s;
}
.pinned-item:hover { background: #d4f0de; }
.no-data-sm { font-size: 0.8rem; color: var(--muted); }

/* Stall status */
.stall-status-list { display: flex; flex-direction: column; gap: 8px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.status-badge.available   { background: #e6f9ee; color: #1a7a40; }
.status-badge.unavailable { background: #fee8e8; color: #c03030; }
.status-badge.unknown     { background: var(--green-pale); color: var(--muted); }

/* Summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sum-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.sum-num { display: block; font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.sum-num.green { color: var(--green-deep); }
.sum-num.red   { color: #e05555; }
.sum-lbl { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,12,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-icon { font-size: 2rem; margin-bottom: 10px; }
.modal-box h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.modal-box p  { font-size: 0.87rem; color: var(--muted); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.btn-cancel {
  padding: 9px 22px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover { background: var(--cream); }
.btn-delete-confirm {
  padding: 9px 22px;
  background: #e05555;
  border: none;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete-confirm:hover { background: #c44040; transform: translateY(-1px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.green { background: var(--green-deep); }



/* --- STICKY SIDEBAR --- */
.alerts-layout {
  align-items: start;
}

.alerts-sidebar-left, .sidebar-right {
  position: sticky;
  top: 90px;
  height: fit-content;
  flex-direction: column;
  gap: 16px;
  display: flex;
}



.reactions-popover {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  padding: 5px 10px;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 10;
}



.reaction-container {
  position: relative;
  display: inline-flex;
}

.reaction-container:hover .reactions-popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px);
}

.react-emoji {
  cursor: pointer;
  font-size: 1.5rem;
  padding: 2px;
  transition: transform 0.2s;
}


.react-emoji:hover {
  transform: scale(1.3);
}

.btn-react.reacted {
  color: var(--green-deep);
  background: var(--green-pale);
  font-weight: bold;
}


