/* ═══════════════════════════════════════════════════════════════
   InboxGUARD Design System – components.css  v1.0 – 28.03.2026
   Zentrale CSS-Definitionen für alle Popups, Modals und Formulare.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Modal Maße */
  --ig-modal-sm:      560px;
  --ig-modal-md:      680px;
  --ig-modal-lg:      920px;
  --ig-modal-hf:       60px;  /* Header / Footer Höhe */
  --ig-modal-pad-x:    24px;  /* Seitenabstand – Titel und Content bündig */
  --ig-modal-pad-y:    24px;  /* Content oben/unten */

  /* Buttons */
  --ig-btn-min-w:     110px;
  --ig-btn-h:          38px;

  /* Eingabefelder – weiß im Dark-Theme */
  --ig-input-bg:     #f8fafc;
  --ig-input-color:  #0f172a;
  --ig-input-border: #cbd5e1;
  --ig-input-h:        38px;
}

/* ─── Modal: Basisstruktur ───────────────────────────────────── */
/* Überschreibt main.css .modal → Flex-Column-Layout */
.modal {
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
}

/* Größen-Varianten */
.modal.modal-sm { width: var(--ig-modal-sm); max-width: 95vw; }
.modal.modal-md { width: var(--ig-modal-md); max-width: 95vw; }
.modal.modal-lg { width: var(--ig-modal-lg); max-width: 98vw; }

/* Fullscreen-Variante */
.modal.modal-fs {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
}
.modal-overlay.fs-overlay {
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
}

/* ─── Modal Header ───────────────────────────────────────────── */
.modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 var(--ig-modal-pad-x) !important;
  height: var(--ig-modal-hf) !important;
  min-height: var(--ig-modal-hf) !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  background: #1e293b !important;
  z-index: 5 !important;
  border-bottom: 1px solid #334155 !important;
}

/* ─── Modal Body ─────────────────────────────────────────────── */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--ig-modal-pad-y) var(--ig-modal-pad-x);
}
.modal-body.no-pad { padding: 0 !important; margin: 0 !important; }

/* Tab-Nav INNERHALB modal-body: negatives margin-top hebt oberes Padding auf */
.modal-body > .tab-nav:first-child,
.modal-body > .ig-tab-nav:first-child {
  margin-top: calc(-1 * var(--ig-modal-pad-y));
  margin-left: calc(-1 * var(--ig-modal-pad-x));
  margin-right: calc(-1 * var(--ig-modal-pad-x));
  padding-left: var(--ig-modal-pad-x);
  padding-right: var(--ig-modal-pad-x);
  padding-top: 8px;
  margin-bottom: var(--ig-modal-pad-y);
}

/* ─── Modal Footer ───────────────────────────────────────────── */
.modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 0 var(--ig-modal-pad-x) !important;
  height: var(--ig-modal-hf) !important;
  min-height: var(--ig-modal-hf) !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  background: #1e293b !important;
  z-index: 5 !important;
  border-top: 1px solid #334155 !important;
  margin-bottom: 0 !important;
}

/* ─── Fullscreen-Button im Header ────────────────────────────── */
.modal-fs-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.modal-fs-btn:hover { color: #f1f5f9; background: #334155; }

/* ─── Schließen-Button im Header ─────────────────────────────── */
.modal-close {
  background: none !important;
  border: none !important;
  color: #64748b !important;
  font-size: 22px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  transition: color 0.15s, background 0.15s !important;
}
.modal-close:hover { color: #f87171 !important; background: #450a0a !important; }

/* ─── Buttons: Einheitliche Mindestbreite ────────────────────── */
.modal-footer .btn {
  min-width: var(--ig-btn-min-w);
  height: var(--ig-btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Eingabefelder: Einheitlich (weiß im Dark-Theme) ───────── */
/* Gilt für alle input/select INNERHALB von .modal, .card, .form-row */
.modal .form-row input:not([type=checkbox]):not([type=radio]),
.modal .form-row select,
.modal input[type=text],
.modal input[type=email],
.modal input[type=password],
.modal input[type=number],
.modal select {
  background: var(--ig-input-bg) !important;
  color: var(--ig-input-color) !important;
  border-color: var(--ig-input-border) !important;
  height: var(--ig-input-h) !important;
  padding: 0 12px !important;
}
.modal .form-row input:not([type=checkbox]):not([type=radio]):focus,
.modal .form-row select:focus,
.modal input[type=text]:focus,
.modal input[type=email]:focus,
.modal input[type=password]:focus,
.modal input[type=number]:focus,
.modal select:focus {
  border-color: #0284c7 !important;
  outline: none !important;
}
.modal .form-row input::placeholder { color: #94a3b8; }

/* Textareas innerhalb von Modals ebenfalls weiß */
.modal textarea {
  background: var(--ig-input-bg) !important;
  color: var(--ig-input-color) !important;
  border-color: var(--ig-input-border) !important;
}
.modal textarea:focus {
  border-color: #0284c7 !important;
  outline: none !important;
}
.modal textarea::placeholder { color: #94a3b8; }

/* Auch .class-select in Modals weiß */
.modal .class-select {
  background: var(--ig-input-bg) !important;
  color: var(--ig-input-color) !important;
  border-color: var(--ig-input-border) !important;
  height: var(--ig-input-h) !important;
}

/* ─── Tab-Navigation (global) ────────────────────────────────── */
/* Ergänzung zu main.css .tab-nav / .tab-btn */
.tab-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden; /* Windows zeigt sonst vertikale Scrollbar */
  scrollbar-width: none; /* Firefox */
}
.tab-nav::-webkit-scrollbar {
  display: none; /* Chrome / Edge / Safari */
}

/* ─── LP List Row Hover ──────────────────────────────────────── */
.lp-cand-row:hover { background: #1e293b; }

/* ─── LP Header Navigation ───────────────────────────────────── */
.lp-nav-btn {
  padding: 8px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.15s;
  margin-bottom: -1px;
}
.lp-nav-btn:hover { color: #cbd5e1; background: rgba(255,255,255,0.04); }
.lp-nav-btn.active { border-bottom-color: #6366f1; color: #a5b4fc; font-weight: 600; }

/* ─── LP Pipeline Page Buttons ───────────────────────────────── */
.lp-page-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.lp-page-btn:hover { color: #cbd5e1; background: rgba(255,255,255,0.04); }
.lp-page-btn.active { border-bottom-color: #0284c7; color: #38bdf8; font-weight: 700; }

/* ─── Konsistente Tab-Panel-Mindesthöhe (kein Springen) ──────── */
.ig-tab-panel {
  min-height: 420px;
}

/* ─── Form-Row Grundstile ────────────────────────────────────── */
.form-row label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Status-Selects (Aktiv/Inaktiv – farbig) ───────────────── */
/* Universeller farbiger Status-Select (grün=aktiv, rot=inaktiv) */
.status-select {
  padding: 0 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  height: 28px !important;
  line-height: 28px !important;
  min-width: 80px;
  cursor: pointer;
  border: 1px solid;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  box-sizing: border-box !important;
}
.status-select.status-active {
  background: #052e16 !important;
  color: #4ade80 !important;
  border-color: #166534 !important;
}
.status-select.status-inactive {
  background: #450a0a !important;
  color: #f87171 !important;
  border-color: #7f1d1d !important;
}
.status-select.status-draft {
  background: #451a03 !important;
  color: #fbbf24 !important;
  border-color: #78350f !important;
}

/* Status-Badge (nur Anzeige, kein Select) */
.status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-badge.status-active {
  background: #052e16;
  color: #4ade80;
}
.status-badge.status-inactive {
  background: #450a0a;
  color: #f87171;
}
.status-badge.status-draft {
  background: #451a03;
  color: #fbbf24;
}

/* Status-Selects in Tabellen (bleiben dunkel als Basis, farbig via JS) */
table .class-select {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

/* Tabellen: vertikale Zentrierung aller Zellen */
table td {
  vertical-align: middle;
}

/* Status-Select in Tabellen: kompakter */
table .status-select {
  height: 28px !important;
  line-height: 28px !important;
  font-size: 11px !important;
  padding: 0 8px !important;
  min-width: 80px;
  box-sizing: border-box !important;
}

/* Status-Select in Modals: Farbstile NICHT von Modal-Input-Styles überschreiben */
.modal .status-select.status-active {
  background: #052e16 !important;
  color: #4ade80 !important;
  border-color: #166534 !important;
}
.modal .status-select.status-inactive {
  background: #450a0a !important;
  color: #f87171 !important;
  border-color: #7f1d1d !important;
}
.modal .status-select.status-draft {
  background: #451a03 !important;
  color: #fbbf24 !important;
  border-color: #78350f !important;
}

/* ─── Grüner Button ─────────────────────────────────────────── */
.btn-green {
  background: #166534 !important;
  color: #4ade80 !important;
  border-color: #166534 !important;
}
.btn-green:hover {
  background: #14532d !important;
}

/* ─── Oranger Button ─────────────────────────────────────────── */
.btn-orange {
  background: #78350f !important;
  color: #fbbf24 !important;
  border-color: #92400e !important;
}
.btn-orange:hover {
  background: #713f12 !important;
}

/* ─── Modul-Kachel (Tenant-Modal Tab 3) ──────────────────────── */
.module-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e293b;
  border-radius: 10px;
  border: 1px solid #334155;
  margin-bottom: 8px;
}
.module-card .module-card-info {
  flex: 1;
}
.module-card .module-card-info .module-card-name {
  font-weight: 500;
  font-size: 14px;
  color: #e2e8f0;
}
.module-card .module-card-info .module-card-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* ─── Textarea flex-fill (Fullscreen-Modus) ──────────────────── */
.ta-flex-fill {
  flex: 1;
  min-height: 0;
  resize: none;
}

/* ─── Ticketsystem ────────────────────────────────────────── */

/* Ordner-Navigation */
.tk-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.tk-folder:hover { background: #1e293b; color: #e2e8f0; }
.tk-folder.active { background: #1e3a5f; color: #38bdf8; font-weight: 600; }
.tk-folder-icon { font-size: 16px; flex-shrink: 0; }
.tk-folder-badge {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 18px;
}

/* Ticket-Liste Zeilen */
.tk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  transition: background 0.1s;
}
.tk-row:hover { background: #1e293b; }
.tk-row:last-child { border-bottom: none; }
.tk-unread { background: #0f172a; }
.tk-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Nachrichten-Karten im Verlauf */
.tk-message {
  border-left: 3px solid #334155;
}
.tk-message:first-child {
  border-left-color: #0284c7;
}

/* File Tags */
.tk-file-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: #1e293b;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
}
.tk-file-remove {
  cursor: pointer;
  color: #64748b;
  font-size: 14px;
  margin-left: 2px;
}
.tk-file-remove:hover { color: #dc2626; }

/* Safari-Fix: Inputs/Selects/Textareas mit ausreichend Padding */
.tk-input,
#tk-new-view input,
#tk-new-view select,
#tk-new-view textarea,
#tk-reply-box textarea {
  padding: 8px 12px;
  min-height: 38px;
  box-sizing: border-box;
  -webkit-appearance: none;
}

/* Nav-Badge für Tickets */
.nav-badge {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
}

/* Marktplatz-Kachel-Grid: 1:1 an app/dummy/index.html (.tile/.rating/.installs/.tile-foot)
   angeglichen - Kacheln liegen direkt auf dem Seitenhintergrund, nicht in einer weiteren
   Card-Box (die sonst dieselbe Hintergrundfarbe wie die Kacheln hätte). */
.mkt-search-input {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 18px;
  display: block;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f1f5f9;
  padding: 12px 18px;
  font-size: 14px;
}
.mkt-search-input:focus { border-color: #0284c7; outline: none; }
.mkt-catbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.mkt-cat {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  background: none;
}
.mkt-cat.on, .mkt-cat:hover { border-color: #0284c7; color: #0284c7; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mkt-tile {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.mkt-tile:hover { border-color: #0284c7; transform: translateY(-3px); }
.mkt-tile-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.mkt-tile-head b { color: #f1f5f9; font-size: 16px; display: block; }
.mkt-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; font-size: 13px; }
.mkt-rating .rstars { color: #fb923c; font-size: 16px; letter-spacing: 1px; }
.mkt-rating .rnum { color: #f1f5f9; font-weight: 700; font-size: 15px; }
.mkt-rating .rcount { color: #64748b; font-size: 12px; }
.byline { font-size: 12px; color: #64748b; }
.mkt-installs { color: #64748b; font-size: 12px; }
.mkt-installs b { color: #94a3b8; }
.mkt-tile p { font-size: 14px; color: #94a3b8; flex: 1; margin: 4px 0 0; }
/* Kachel-Titelblock: 1) Modulname 2) Kurzbeschreibung (Tagline) 3) von Developer (.byline) */
.mkt-tagline {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Klickbarer Bewertungs-Text - farbiger Hover-Hintergrund macht Link-Charakter erkennbar */
.mkt-link-hover { cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; transition: background .15s; }
.mkt-link-hover:hover { background: #1e293b; }
/* Werbekachel im Detail-Popup (wie bei WordPress-Plugin-Popups oberhalb des Modulnamens) -
   bis echte, vom Developer hochgeladene Banner existieren, ein generierter Platzhalter aus
   Icon + Markenfarben (.modal hat bereits overflow:hidden, daher keine eigene Rundung noetig). */
.mkt-banner {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b 60%, #0284c7);
}
.mkt-banner .mkt-banner-icon { color: #38bdf8; opacity: .9; }
.mkt-banner .mkt-banner-name { color: #f1f5f9; font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.mkt-tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
/* Pflicht-Hinweis Netto/MwSt + B2B-Zielgruppe (Nutzer-Vorgabe 2026-07-24) - ueberall wo Preise
   auftauchen, identisch zur Marketing-Website (.b2b-note in app/dummy/index.html). */
.mkt-b2b-note { color: #64748b; font-size: 12px; line-height: 1.6; border-top: 1px solid #334155; margin: 0; padding-top: 12px; }
/* Marktplatz-Detail-Popup: der Standard-Modal-Header (.modal-header) ist auf feste
   Einzeilen-Hoehe (--ig-modal-hf, 60px !important) fuer alle anderen Popups im System
   ausgelegt - das mehrzeilige Icon/Name/Kategorie/Bewertungs-Layout hier braucht dagegen
   variable Hoehe mit echtem Innenabstand oben/unten (Nutzer-Vorgabe 2026-07-24, Marketing-
   Website .m-head als Vorbild). Eigene Klasse noetig, da die Basis-Regel !important nutzt. */
.mkt-detail-head {
  height: auto !important;
  min-height: auto !important;
  padding: 20px 24px !important;
}
.mkt-detail-head > div:first-child { margin: 2px 0; }
/* Konditionen-Tab: identische Karte wie die Preise-Seite der Marketing-Website (.pcard/.ph/
   .setupnote in app/dummy/index.html) - Nutzer-Fund 2026-07-24: Popup zeigte bisher eine
   eigene, abweichende Zusammenfassung statt derselben Preistabelle. */
.mkt-pcard { background: #1e293b; border: 1px solid #334155; border-radius: 14px; overflow: hidden; }
.mkt-pcard-head { padding: 16px 20px; border-bottom: 1px solid #334155; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mkt-pcard-note { padding: 10px 20px; color: #94a3b8; font-size: 13px; border-top: 1px solid #334155; background: #0f172a; }

/* HUBrobotix-Markenschreibweise (verbindlich, siehe CLAUDE.md): HUB plain/hell, robotix blau,
   .ai blau/kursiv - keine Schriftgroessen-Ueberschreibung, damit die Hoehe zum umgebenden Text
   passt. Bislang nur auf der Marketing-Website (app/dummy/index.html) verwendet, jetzt auch
   fuer Entwickler-Namen im App-Marktplatz. */
.brand-hub { color: #f1f5f9; }
.brand-rx { color: #38bdf8; }
.brand-ai { color: #38bdf8; font-style: italic; }

/* ── Dashboard-Widget-System (docs/core/dashboard-widget-system.md, Nutzer-Entscheidung
   2026-07-26: vollstaendiges Core-System fuer alle Rollen) ─────────────────────────────── */
.widget-tab-bar { display: flex; align-items: center; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid #334155; overflow-x: auto; scrollbar-width: none; }
.widget-tab-bar::-webkit-scrollbar { display: none; }
.widget-tab { padding: 8px 14px; background: none; border: none; border-bottom: 2px solid transparent; color: #94a3b8; cursor: pointer; font-size: 13px; border-radius: 6px 6px 0 0; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.widget-tab:hover:not(.active) { background: #243044; color: #cbd5e1; }
.widget-tab.active { border-bottom: 2px solid #0284c7; color: #0284c7; font-weight: 600; background: rgba(2,132,199,0.08); }
.widget-tab-add { padding: 8px 12px; background: none; border: none; color: #64748b; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.widget-tab-add:hover { color: #f1f5f9; }
.widget-tab[draggable="true"] { cursor: grab; }
.widget-tab.wdb-drag-over { background: #1d2d4a; }

.widget-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.widget-picker-panel { position: relative; }
.widget-picker-dropdown { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; background: #1e293b; border: 1px solid #334155; border-radius: 8px; min-width: 320px; max-width: 420px; max-height: 420px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 8px 0; }
.widget-picker-module-label { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #64748b; text-transform: uppercase; }
.widget-picker-item { padding: 8px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.widget-picker-item:hover { background: #334155; }
.widget-picker-item-label { font-size: 13px; color: #f1f5f9; }
.widget-picker-item-desc { font-size: 11px; color: #64748b; }
.widget-picker-empty { padding: 14px; font-size: 12px; color: #64748b; text-align: center; }

.widget-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 130px; gap: 14px; }
@media (max-width: 1280px) { .widget-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .widget-grid { grid-template-columns: 1fr; } }
.widget-cell { background: #1e293b; border: 1px solid #334155; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.widget-cell.wdb-dragging { opacity: .4; }
.widget-cell-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid #334155; cursor: grab; flex-shrink: 0; }
.widget-cell-title { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-cell-actions { display: flex; gap: 4px; flex-shrink: 0; }
.widget-cell-actions button { background: none; border: none; color: #64748b; cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: 4px; }
.widget-cell-actions button:hover { background: #334155; color: #f1f5f9; }
.widget-cell-body { flex: 1; padding: 12px; overflow: auto; position: relative; min-height: 0; }
.widget-metric-value { font-size: 26px; font-weight: 700; color: #f1f5f9; }
.widget-metric-label { font-size: 11px; color: #64748b; margin-top: 4px; }
.widget-status-row { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.widget-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.widget-error { color: #f87171; font-size: 12px; text-align: center; padding: 10px 0; }
.widget-skeleton { height: 100%; min-height: 40px; border-radius: 6px; background: linear-gradient(90deg, #1e293b 25%, #263449 37%, #1e293b 63%); background-size: 400% 100%; animation: wdb-skeleton 1.4s ease infinite; }
@keyframes wdb-skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.widget-empty-tab { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 160px; padding: 40px 20px; color: #64748b; font-size: 13px; }
