/* Produktmonitor – Basis: Farben, Typografie, Buttons, Formulare, Lampen */
:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --card: #111a2e;
  --card-2: #16213a;
  --line: #22304d;
  --text: #e5e9f2;
  --muted: #8b97ad;
  --primary: #3b82f6;
  --primary-2: #8b5cf6;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, .18), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(139, 92, 246, .16), transparent 60%),
              var(--bg);
  min-height: 100vh;
}
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 18px rgba(59, 130, 246, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-ghost.active { border-color: var(--primary); color: #bfdbfe; }
.btn-danger { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.soon { font-size: .7rem; font-weight: 700; text-transform: uppercase; background: rgba(255,255,255,.1); padding: .1rem .4rem; border-radius: 6px; }

/* Formulare */
label > span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
input[type=text], input[type=url], input[type=number], select {
  width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; outline: none;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
label.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
form.inline { display: inline; }

/* Tags, Badges, Chips */
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.tag.ok   { background: rgba(34, 197, 94, .15); color: #86efac; }
.tag.warn { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.tag.bad  { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.tag.muted{ background: rgba(255, 255, 255, .08); color: var(--muted); }
.badge.admin { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; margin-left: .3rem; vertical-align: middle; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: .85rem; }
.chip.small { padding: .1rem .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #bfdbfe; border-color: rgba(59,130,246,.35); }

/* Status-Lampen */
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #475569; box-shadow: 0 0 0 2px rgba(255,255,255,.05); flex: none; }
.lamp.online   { background: var(--ok); animation: blink-ok 1.6s ease-in-out infinite; }
.lamp.offline  { background: var(--bad); animation: blink-bad 1s steps(2, start) infinite; }
.lamp.disabled { background: #475569; }
@keyframes blink-ok  { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@keyframes blink-bad { 0% { opacity: 1; box-shadow: 0 0 10px rgba(239,68,68,.8); } 100% { opacity: .35; } }

/* Flash-Meldungen */
.flash { padding: .7rem 1rem; border-radius: 10px; margin: 0 0 1rem; border: 1px solid; font-size: .92rem; }
.flash.ok   { background: rgba(34,197,94,.1);  border-color: rgba(34,197,94,.35);  color: #bbf7d0; }
.flash.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #fde68a; }
.flash.bad  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.35);  color: #fecaca; }

/* Toasts (Browser-Benachrichtigungen im Portal) */
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; z-index: 50; max-width: 360px; }
.toast { background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 44px 1fr; gap: .7rem; animation: toast-in .25s ease; }
.toast.price_below_min { border-left-color: var(--ok); }
.toast.back_in_stock   { border-left-color: var(--primary-2); }
.toast.paused, .toast.unreachable { border-left-color: var(--warn); }
.toast img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.toast .t-title { font-weight: 600; font-size: .9rem; }
.toast .t-msg { font-size: .83rem; color: var(--muted); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.25rem 2rem; color: var(--muted); font-size: .8rem; max-width: 1200px; margin: 0 auto; }
