.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;}
.dot-offline{background:#bbb;}
.dot-heartbeat{background:linear-gradient(135deg,#f5a623,#f8e71c);}
.dot-online{background:#2ecc71;}

/* Card styling (support both legacy .card-bot and current .bot-card) */
.card-bot,.bot-card{border-radius:16px;border:1px solid #eee;box-shadow:0 1px 2px rgba(0,0,0,0.04);}
.card-bot .meta,.bot-card .meta{font-size:.85rem;color:#666;}
.card-bot .name,.bot-card .name{font-weight:600;}

/* --- Custom fixes --- */

/* Ensure rightmost button gets rounded even if non-button siblings follow (legacy safety) */
.btn-group > .btn:last-of-type:not(.dropdown-toggle) {
  border-top-right-radius: .25rem;
  border-bottom-right-radius: .25rem;
}

/* Dashed divider used under addon rows */
.hr-dashed {
  border: 0;
  border-top: 1px dashed #cfcfcf;
  opacity: 1;
  margin-top: .5rem;
  margin-bottom: .5rem;
}

/* ===== Add-on buttons: future-proofing ===== */

/* When an add-on row has ONLY ONE button, round BOTH ends (greeter-only, or any single active addon) */
.btn-group > .btn:first-child:last-child {
  border-radius: .25rem;
}

/* Scoped reinforcement for bot cards (wins against aggressive themes) */
.bot-card .btn-group[aria-label="Greeter"] > .btn:first-child:last-child,
.bot-card .btn-group[aria-label="Add-ons"] > .btn:first-child:last-child {
  border-radius: .25rem;
}

/* Optional: tiny breathing room when multiple addon buttons wrap */
.bot-card .btn-group[aria-label="Add-ons"] .btn + .btn,
.bot-card .btn-group[aria-label="Greeter"] .btn + .btn {
  /* keep Bootstrap’s group seam; adjust only if your theme collapses borders oddly */
  /* margin-left: -1px; */
}

/* Optional: if your theme zeroes all radii inside .btn-group.sm, restore the small-radius explicitly */
.btn-group.btn-group-sm > .btn {
  /* comment out if your global theme already sets this */
  border-radius: .25rem;
}

/* Tidy up Bootstrap switches in the Add-ons modal */
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
}
.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}
