/* ============================================================
   JustSpice Tracker – Stylesheet v3
   Sidebar layout, mobile-first, Just Spice brand
   ============================================================ */

:root {
  --primary:        #E8650A;
  --primary-dark:   #C44F06;
  --primary-light:  #FFF3E8;
  --bg:             #FAF8F4;
  --bg-card:        #FFFFFF;
  --bg-sidebar:     #FFFFFF;
  --bg-input:       #F7F5F1;
  --text-primary:   #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-light:     #9E9E9E;
  --border:         #EDE9E3;
  --success:        #2D9E5A;
  --success-bg:     #EDFAF4;
  --danger:         #D93025;
  --danger-bg:      #FFF0EF;
  --warning:        #E8A80A;
  --warning-bg:     #FFFBEA;
  --info:           #0A7AE8;
  --info-bg:        #EBF4FF;
  --neutral-bg:     #F2F0EC;
  --sidebar-w:      240px;
  --topbar-h:       52px;
  --radius:         14px;
  --radius-sm:      8px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
  --shadow:         0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  --font:           'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --t:              0.18s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary);
       line-height: 1.6; min-height: 100vh; }
a    { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img  { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.3rem, 4.5vw, 2rem); }
h3 { font-size: 1rem; }

/* ════════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
════════════════════════════════════════════════════════════ */

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar.open { transform: translateX(0); }

/* Desktop: always visible */
@media (min-width: 768px) {
  .sidebar { transform: translateX(0); }
}

/* Overlay backdrop (mobile only) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 299;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo { font-size: 1.8rem; line-height: 1; }
.sidebar-brand { font-size: 0.85rem; font-weight: 700; line-height: 1.25; flex: 1;
  color: var(--text-primary); }
.sidebar-brand strong { color: var(--primary); }
.sidebar-close { margin-left: auto; }
@media (min-width: 768px) { .sidebar-close { display: none; } }

/* Sidebar Nav */
.sidebar-nav { padding: 0.75rem 0.75rem 0; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--t), color var(--t);
  cursor: pointer; border: none; background: transparent; font-family: var(--font);
  text-decoration: none; width: 100%;
}
.sidebar-link:hover { background: var(--bg-input); color: var(--text-primary); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); }
.sidebar-link.active .sidebar-icon { /* stays emoji */ }
.sidebar-link-danger { color: var(--danger); }
.sidebar-link-danger:hover { background: var(--danger-bg); color: var(--danger); }
.sidebar-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }

/* Sidebar spacer pushes footer down */
.sidebar-spacer { flex: 1; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.875rem; border-radius: var(--radius-sm);
  cursor: default;
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; flex-shrink: 0;
}
.sidebar-username { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.sidebar-role { font-size: 0.72rem; color: var(--text-light); }

/* ── Main wrapper ─────────────────────────────────────────── */
.main-wrapper {
  min-height: 100vh;
  padding-top: var(--topbar-h); /* space for mobile topbar */
}
@media (min-width: 768px) {
  .main-wrapper { margin-left: var(--sidebar-w); padding-top: 0; }
}

/* ── Mobile topbar (hamburger) ───────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: var(--bg-sidebar); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1rem; z-index: 200; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .topbar { display: none; } }
.topbar-brand { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

/* ── Icon buttons ─────────────────────────────────────────── */
.btn-icon {
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 1rem;
  transition: background var(--t), color var(--t);
}
.btn-icon:hover { background: var(--bg-input); color: var(--text-primary); }

/* ════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; font-family: var(--font);
  border: none; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff;
  box-shadow: 0 4px 12px rgba(232,101,10,0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-input); color: var(--text-primary); }
.btn-sm  { padding: 0.38rem 0.9rem; font-size: 0.78rem; }
.btn-lg  { padding: 0.75rem 2rem; font-size: 1rem; }

/* ════════════════════════════════════════════════════════════
   LOGIN PAGE
════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem 1rem;
  background: linear-gradient(145deg, #FAF8F4 0%, #FFF3E8 100%);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-icon { font-size: 3.5rem; margin-bottom: 0.4rem; }
.login-logo h1 { font-size: 1.6rem; }
.login-logo p  { color: var(--text-secondary); font-size: 0.875rem; margin-top: 0.2rem; }
.login-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem; width: 100%; max-width: 400px; border: 1px solid var(--border);
}
.login-card h2 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-control {
  width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font);
  background: var(--bg-input); color: var(--text-primary); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,101,10,0.15); }
.form-check { display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }
.form-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.login-card .btn-primary { width: 100%; justify-content: center; padding: 0.8rem; }
.alert { padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1rem; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert-info  { background: var(--info-bg);   color: var(--info);   border: 1px solid #bfdbfe; }

/* ════════════════════════════════════════════════════════════
   PAGE LAYOUT
════════════════════════════════════════════════════════════ */
.page-wrapper { max-width: 1300px; margin: 0 auto; padding: 1.25rem 1rem; }
@media (min-width: 768px) { .page-wrapper { padding: 2rem 1.75rem; } }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-bottom: 1.5rem;
}
@media (max-width: 420px) { .stats-bar { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .stats-bar { gap: 1rem; margin-bottom: 2rem; } }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem; text-align: center; box-shadow: var(--shadow-sm);
}
@media (min-width: 500px) { .stat-card { border-radius: var(--radius); padding: 1.1rem 0.75rem; } }
.stat-number { font-size: 1.4rem; font-weight: 800; line-height: 1; margin-bottom: 0.15rem; }
@media (min-width: 768px) { .stat-number { font-size: 2rem; } }
.stat-label { font-size: 0.6rem; color: var(--text-secondary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; }
@media (min-width: 500px) { .stat-label { font-size: 0.7rem; } }
.stat-total .stat-number { color: var(--primary); }
.stat-ja    .stat-number { color: var(--success); }
.stat-nein  .stat-number { color: var(--danger);  }
.stat-es-geht .stat-number { color: var(--warning); }
.stat-np    .stat-number { color: var(--text-light); }

/* ── Page title row ─────────────────────────────────────────── */
.page-title-row { display: flex; align-items: baseline; gap: 0.6rem;
  margin-bottom: 1.25rem; flex-wrap: wrap; }
.spice-count { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }

/* ── Controls Bar ──────────────────────────────────────────── */
.controls-bar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .controls-bar { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.search-form { display: flex; gap: 0.5rem; width: 100%; }
@media (min-width: 640px) { .search-form { flex: 1; min-width: 200px; } }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap svg { position: absolute; left: 0.875rem; top: 50%;
  transform: translateY(-50%); color: var(--text-light); pointer-events: none; }
.search-input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 0.9rem; font-family: var(--font);
  background: var(--bg-card); color: var(--text-primary); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,101,10,0.12); }
.filter-sort-group { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.select-control {
  flex: 1; min-width: 120px;
  padding: 0.6rem 2rem 0.6rem 0.875rem; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: 0.85rem; font-family: var(--font);
  background: var(--bg-card); color: var(--text-primary); cursor: pointer;
  outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239E9E9E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}
.select-control:focus { border-color: var(--primary); outline: none; }

/* ════════════════════════════════════════════════════════════
   SPICE GRID & CARDS (mobile-first)
════════════════════════════════════════════════════════════ */
.spice-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 column */
  gap: 0.875rem;
}
@media (min-width: 480px) {
  .spice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .spice-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}
@media (min-width: 1200px) {
  .spice-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card */
.spice-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: row;   /* horizontal on mobile */
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}
/* Vertical layout from tablet up */
@media (min-width: 480px) {
  .spice-card { flex-direction: column; }
  .spice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* Card accent borders */
.card-ja   { border-color: #a3e6be; }
.card-nein { border-color: #fbb5b0; }
.card-es-geht { border-color: #fde99a; }

/* Deep-link highlight flash */
.card-highlight {
  animation: pulse-highlight 2.5s ease forwards;
}
@keyframes pulse-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(232,101,10,0.5); }
  40%  { box-shadow: 0 0 0 10px rgba(232,101,10,0); }
  100% { box-shadow: var(--shadow-sm); }
}

/* Image */
.spice-image-wrap {
  position: relative;
  width: 110px; min-width: 110px; /* mobile horizontal */
  background: var(--bg-input);
  overflow: hidden;
}
@media (min-width: 480px) {
  .spice-image-wrap { width: 100%; min-width: 0; aspect-ratio: 1; }
}
.spice-image-wrap img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease; }
.spice-card:hover .spice-image-wrap img { transform: scale(1.05); }
.spice-image-placeholder { width: 100%; height: 100%; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--border); }

/* Card action buttons row (bottom of card body, right-aligned) */
.card-actions {
  display: flex; gap: 0.3rem; align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: auto;
}
.card-action-btn {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-decoration: none; flex-shrink: 0;
}
.card-action-btn:hover { background: var(--primary-light); border-color: var(--primary); transform: scale(1.08); }
.card-action-btn.shop-btn:hover { background: var(--primary); }
.card-action-btn.hide-btn:hover  { background: var(--danger-bg); border-color: var(--danger); }

/* Body */
.spice-body {
  padding: 0.75rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.45rem; min-width: 0;
}
@media (min-width: 480px) { .spice-body { padding: 1rem; gap: 0.6rem; } }
.spice-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.3rem; }
.spice-name  { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 480px) { .spice-name { font-size: 0.95rem; } }
.spice-price { font-size: 0.9rem; font-weight: 800; color: var(--primary);
  white-space: nowrap; flex-shrink: 0; }
.spice-meta  { font-size: 0.68rem; color: var(--text-light);
  display: flex; align-items: center; gap: 0.3rem; }
.spice-meta svg { flex-shrink: 0; }

/* Sale badge */
.sale-badge {
  position: absolute; bottom: 0.4rem; left: 0.4rem;
  background: #E8650A; color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 100px;
  letter-spacing: 0.03em;
}

/* Price wrap */
.spice-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.05rem; flex-shrink: 0; }
.spice-price.price-sale { color: var(--primary); }
.spice-price-original { font-size: 0.72rem; color: var(--text-light);
  text-decoration: line-through; font-weight: 600; }

/* Info row (rating + last purchased) */
.spice-info-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.last-purchased-badge {
  font-size: 0.68rem; font-weight: 600; color: var(--text-secondary);
  background: var(--neutral-bg); padding: 0.15rem 0.45rem; border-radius: 100px;
}

/* Rating badges */
.rating-badge { display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.18rem 0.55rem; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; }
.rating-ja             { background: var(--success-bg); color: var(--success); }
.rating-nein           { background: var(--danger-bg);  color: var(--danger);  }
.rating-es-geht        { background: var(--warning-bg); color: #B8860A; }
.rating-nicht-probiert { background: var(--neutral-bg); color: var(--text-secondary); }


/* Card body */
.spice-body { position: relative; }

/* ════════════════════════════════════════════════════════════
   EDIT PANEL (slide-in from right)
════════════════════════════════════════════════════════════ */
.edit-panel-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 400; backdrop-filter: blur(2px);
}
.edit-panel-overlay.open { display: block; }

.edit-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg-card); z-index: 401;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}
.edit-panel.open { transform: translateX(0); }

.edit-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
  background: var(--bg-input);
}
.edit-panel-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.edit-panel-body .form-group { margin-bottom: 1.1rem; }
.edit-panel-body label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════
   SETTINGS PAGE
════════════════════════════════════════════════════════════ */
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.settings-card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}
.settings-card-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.settings-card-header h3 { margin-bottom: 0.2rem; font-size: 1rem; }
.settings-card-header p  { font-size: 0.82rem; color: var(--text-secondary); }
.settings-card-body  { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.push-status-row { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; }
.push-status-label { font-size: 0.9rem; font-weight: 600; }
.settings-hint { font-size: 0.8rem; color: var(--text-light); }

.settings-message {
  padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600;
}
.settings-message.success { background: var(--success-bg); color: var(--success); }
.settings-message.error   { background: var(--danger-bg);  color: var(--danger);  }
.settings-message.hidden  { display: none; }

.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem;
  font-size: 0.875rem; align-items: center; }
.info-label { color: var(--text-secondary); font-weight: 600; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-secondary); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 0.875rem; }
.empty-state h3 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.empty-state p  { max-width: 320px; margin: 0 auto; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   SPINNER / TOAST / UTILS
════════════════════════════════════════════════════════════ */
.spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#toast-container {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem; z-index: 9999;
}
@media (min-width: 480px) { #toast-container { left: auto; right: 1.25rem; max-width: 340px; } }
.toast {
  padding: 0.8rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px); color: #fff;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger);  }
.toast-info    { background: var(--info);    }

mark { background: #fde68a; color: var(--text-primary); border-radius: 2px; padding: 0 2px; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   HIDDEN SPICES LIST (settings)
════════════════════════════════════════════════════════════ */
.hidden-spices-list { display: flex; flex-direction: column; gap: 0.6rem; }
.hidden-spice-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.5rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-input);
}
.hidden-spice-info { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.hidden-spice-img { width: 40px; height: 40px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; }
.hidden-spice-img-placeholder { width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; }
.hidden-spice-name { font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ════════════════════════════════════════════════════════════
   SCRAPER PROGRESS (settings)
════════════════════════════════════════════════════════════ */
.scraper-progress {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.scraper-progress-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.875rem; border-bottom: 1px solid var(--border);
  background: var(--neutral-bg);
}
.scraper-status-label { font-size: 0.85rem; font-weight: 700; }
.scraper-log {
  padding: 0.6rem 0.875rem; font-family: monospace; font-size: 0.78rem;
  color: var(--text-secondary); max-height: 220px; overflow-y: auto;
  white-space: pre-wrap; line-height: 1.6;
}
.scraper-log-line { margin-bottom: 0.1rem; }
