/* bot-settings.css – Standalone Styles for Bot Settings Form */

.cb-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  padding: 26px 18px 18px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(60,120,200,0.09);
  margin-bottom: 18px;
  width: 100%;
  min-height: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cb-row-top4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 18px;
}

.cb-row-wide {
  width: 100%;
  margin-bottom: 18px;
}

.cb-form-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  color: #2d4157;
  font-size: 1.09em;
  margin-bottom: 0;
}

.cb-field,
.cb-field:focus,
.cb-api-input {
  border: 1.5px solid #ccd6e3;
  border-radius: 8px;
  background: #f7fafd;
  font-size: 1.05rem;
  transition: border .14s, box-shadow .14s;
  padding: 12px 15px;
  margin-top: 3px;
}

.cb-field:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 0 2px rgba(26,188,156,.16);
  outline: none;
}

.cb-button-primary {
  background: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 38px;
  font-size: 1.09em;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(26,188,156,0.10);
  transition: background .13s, box-shadow .13s;
  margin-top: 18px;
}
.cb-button-primary:hover {
  background: #16a085;
}

.cb-settings-save-msg {
  color: #19aa5a;
  font-weight: 700;
  margin-left: 14px;
  opacity: 0;
  transition: opacity 0.18s;
  font-size: 1.04em;
  vertical-align: middle;
}
.cb-settings-save-msg.show {
  opacity: 1;
}

@media (max-width: 700px) {
  .cb-row-top4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cb-settings-form {
    padding: 13px 6px 13px 6px;
  }
}
.cb-api-input.api-glow-green {
  box-shadow: 0 0 0 4px #7aecc7, 0 1px 4px #19aa5a38;
  border-color: #19aa5a !important;
  background: #f2fff8;
  transition: box-shadow 0.22s, border 0.17s, background 0.19s;
}
.cb-api-input.api-glow-red {
  box-shadow: 0 0 0 4px #ffe5e5, 0 1px 4px #e33c3c32;
  border-color: #e33c3c !important;
  background: #fff7f7;
  transition: box-shadow 0.22s, border 0.17s, background 0.19s;
}
/* --- Consistent Side-by-Side Buttons, No Wrapping --- */
.cb-settings-actions-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: nowrap;  /* Don't allow wrap, will shrink buttons if needed */
  justify-content: flex-start;
}

.cb-settings-save-btn,
.cb-wizard-btn,
#cb-instruct-wizard-btn {
  background: #1abc9c !important;
  color: #fff !important;
  border: none;
  border-radius: 30px !important;
  font-weight: 700 !important;
  padding: 13px 38px !important;
  font-size: 1.18em !important;
  box-shadow: 0 1px 10px rgba(26,188,156,0.10);
  transition: background .13s, box-shadow .13s, color .11s, filter .14s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  max-width: 100%;
  width: auto;
  text-align: center;
  gap: 10px;
  margin: 0 !important;
  white-space: nowrap;
}

.cb-settings-save-btn:hover,
.cb-wizard-btn:hover,
#cb-instruct-wizard-btn:hover {
  background: #179a7c !important;
  color: #e0fff7 !important;
}

.cb-settings-save-btn:active,
.cb-wizard-btn:active,
#cb-instruct-wizard-btn:active {
  filter: brightness(0.98);
  transform: scale(0.97);
}

/* Responsive: stack vertically on mobile */
@media (max-width: 700px) {
  .cb-settings-actions-row {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
  }
  .cb-settings-save-btn,
  .cb-wizard-btn,
  #cb-instruct-wizard-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
