/* ==========================================================
   Meine Bots (Bot-Filterliste)
   Konfigurationsseite im selben Karten-Look wie Alerts, Chatbox,
   Emote-Wand, Event-Liste, Text-Labels, Countdown und Follower-Ziel
   (siehe style/alerts.css, style/chat.css, style/eventlist.css,
   style/followergoal.css, style/countdown.css) - eigenstaendiges, auf
   #botsPage skopiertes Stylesheet (bt-* Klassenpraefix), damit alle
   Module unabhaengig voneinander bleiben. Nutzt bewusst NICHT mehr
   style/scheduled.css (das bleibt exklusiv fuer "Geplante Nachrichten"),
   damit eine Aenderung an einem Modul das andere nicht mehr beeinflusst.

   Vorgabe: Border-Radius in diesem Modul ist ueberall maximal 3px, analog
   zur Vorgabe in den anderen Modulen - siehe Abschnitt "Radius-Cap".
   ========================================================== */


#botsPage { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Karte ----------
   Basis + Kopf kommen vom globalen .card / .card-header (boxen.css). */

/* ---------- Slot-Anzeige ---------- */
#botsPage .bt-slotbar { display: flex; flex-direction: column; gap: 6px; }
#botsPage .bt-slotbar-top {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint);
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
#botsPage .bt-slotbar-val { color: var(--text-primary); font-weight: 700; text-transform: none; letter-spacing: 0; }
#botsPage .bt-slotbar-segs { display: flex; gap: 4px; }
#botsPage .bt-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--border); transition: background 0.2s ease; }
#botsPage .bt-seg--filled { background: var(--accent); }

/* ---------- Leerzustand ---------- */
#botsPage .bt-empty { text-align: center; padding: 28px 20px; color: var(--text-faint); }
#botsPage .bt-empty-ic { font-size: 34px; margin-bottom: 8px; }
#botsPage .bt-empty p { margin: 0; font-size: 13.5px; }

/* ---------- Karten-Raster ---------- */
#botsPage .bt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

#botsPage .bt-tile {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; min-height: 104px; box-sizing: border-box;
}
#botsPage .bt-tile-icon { font-size: 22px; line-height: 1; }

/* Terminal-Look - kommt jetzt aus dem globalen .mono-field (formulare.css),
   das auch Werbetimer (style/scheduled.css) nutzt, damit beide Module bei
   den Eingabefeldern konsistent aussehen; hier bleibt nur die Zentrierung. */
#botsPage .bt-tile-input { text-align: center; }
#botsPage .bt-tile-input:focus { outline: none; border-color: var(--accent); }

#botsPage .bt-tile-actions { display: flex; gap: 6px; }
#botsPage .bt-iconbtn {
  width: 28px; height: 28px; border-radius: 3px; background: var(--bg-card); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-tertiary); cursor: pointer;
}
#botsPage .bt-iconbtn:hover { background: var(--border-strong); }
#botsPage .bt-iconbtn.save:hover { color: var(--success); border-color: #2a5a3a; }
#botsPage .bt-iconbtn.save.is-dirty {
  color: var(--success); border-color: var(--success);
  box-shadow: 0 0 8px rgba(70,209,96,0.6);
  animation: btSaveDirtyPulse 1.6s ease-in-out infinite;
}
@keyframes btSaveDirtyPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(70,209,96,0.4); }
  50% { box-shadow: 0 0 12px rgba(70,209,96,0.9); }
}
#botsPage .bt-iconbtn.delete:hover { color: var(--danger); border-color: #5a2a2a; }

#botsPage .bt-tile-status { font-size: 11px; color: var(--success); min-height: 13px; }

/* ---------- "Hinzufuegen"-Kachel ---------- */
#botsPage .bt-addtile {
  border: 1px dashed var(--border-strong); border-radius: 3px; min-height: 104px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#botsPage .bt-addtile:hover { border-color: var(--accent); background: rgba(145,70,255,0.06); }
#botsPage .bt-addtile .plus { font-size: 26px; color: var(--text-faint); transition: color 0.15s ease; }
#botsPage .bt-addtile:hover .plus { color: var(--accent); }

/* ---------- Radius-Cap: max. 3px ---------- */
/* Gilt bewusst NICHT fuer .bt-tile-input - dessen border-radius:4px ist Teil
   des vorgegebenen Terminal-Stils (siehe oben) und soll nicht ueberschrieben werden. */
#botsPage button {
  border-radius: 3px;
}

@media (max-width: 900px) {
  #botsPage .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
