#rhPage .form-group,
#rhSettingsModal.rh-settings-panel .form-group {
  margin-bottom: 10px;
}

#rhPage .form-group input,
#rhPage .form-group textarea,
#rhPage .form-group select,
#rhPage .form-group sp-textarea,
#rhSettingsModal.rh-settings-panel .form-group input,
#rhSettingsModal.rh-settings-panel .form-group textarea,
#rhSettingsModal.rh-settings-panel .form-group select,
#rhSettingsModal.rh-settings-panel .form-group sp-textarea {
  width: 100% !important;
  margin-left: 0 !important;
}

#rhPage .api-input-group,
#rhSettingsModal.rh-settings-panel .api-input-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#rhPage .api-input-actions,
#rhSettingsModal.rh-settings-panel .api-input-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

#rhPage .toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

#rhPage .toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

#rhPage .toggle-text {
  white-space: normal;
  color: #d8e1f2;
  line-height: 1.4;
}

#rhPage .config-status,
#rhSettingsModal.rh-settings-panel .config-status {
  margin-top: 8px;
}

#rhPage .dark-input,
#rhPage .dark-select,
#rhPage .simple-input {
  width: 100% !important;
  margin-left: 0 !important;
}

#rhPage .simple-input,
#rhPage .dark-input,
#rhPage .dark-select,
#rhSettingsModal.rh-settings-panel .simple-input,
#rhSettingsModal.rh-settings-panel .dark-input,
#rhSettingsModal.rh-settings-panel .dark-select {
  min-height: 32px !important;
  height: 32px !important;
  box-sizing: border-box !important;
}

#rhSettingsModal.rh-settings-panel .simple-input {
  width: 100% !important;
  margin-left: 0 !important;
}

#rhPage .api-input-group > .dark-input,
#rhPage .api-input-group > .simple-input,
#rhSettingsModal.rh-settings-panel .api-input-group > .dark-input,
#rhSettingsModal.rh-settings-panel .api-input-group > .simple-input {
  width: 100% !important;
  margin-left: 0 !important;
  flex: 0 0 auto !important;
}

#rhPage .api-input-actions .toggle-btn,
#rhPage .api-input-actions .save-btn,
#rhSettingsModal.rh-settings-panel .api-input-actions .toggle-btn,
#rhSettingsModal.rh-settings-panel .api-input-actions .save-btn {
  min-height: 30px !important;
  white-space: nowrap;
}

#rhPage .toggle-btn,
#rhPage .save-btn,
#rhPage .config-status,
#rhSettingsModal.rh-settings-panel .toggle-btn,
#rhSettingsModal.rh-settings-panel .save-btn,
#rhSettingsModal.rh-settings-panel .config-status {
  margin-left: 0 !important;
}

#rhPage .toggle-btn,
#rhPage .save-btn {
  flex: 0 0 auto;
}

#comfyPage input[type="text"],
#comfyPage input[type="number"],
#comfyPage select {
  font-family: 'Rajdhani', sans-serif !important;
}

#ecommercePanel input[type="text"],
#ecommercePanel input[type="number"],
#ecommercePanel select,
#ecommercePanel textarea {
  font-family: "Microsoft YaHei", "寰蒋闆呴粦", Arial, sans-serif !important;
}

#bananaPage .simple-input[type="text"],
#bananaPage .simple-input[type="password"],
#bananaPage .simple-input[type="number"],
#ecommercePanel .simple-input[type="text"],
#ecommercePanel .simple-input[type="password"],
#ecommercePanel .simple-input[type="number"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid #f59e0b;
  border-radius: 6px;
  font-size: 14px;
  color: #000 !important;
  background: #fff !important;
  outline: none;
  box-sizing: border-box;
  -webkit-text-fill-color: #000 !important;
}

#bananaPage .simple-input[type="text"]::placeholder,
#bananaPage .simple-input[type="password"]::placeholder,
#bananaPage .simple-input[type="number"]::placeholder,
#ecommercePanel .simple-input[type="text"]::placeholder,
#ecommercePanel .simple-input[type="password"]::placeholder,
#ecommercePanel .simple-input[type="number"]::placeholder {
  color: #666 !important;
  -webkit-text-fill-color: #666 !important;
}

#bananaPage .simple-input[type="text"]:focus,
#bananaPage .simple-input[type="password"]:focus,
#bananaPage .simple-input[type="number"]:focus,
#ecommercePanel .simple-input[type="text"]:focus,
#ecommercePanel .simple-input[type="password"]:focus,
#ecommercePanel .simple-input[type="number"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#bananaPage .upload-section {
  margin-bottom: 10px;
  padding: 10px;
  padding-inline: 10px;
  border: 1px solid #1f2937;
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%) !important;
  border-radius: var(--radius-lg) !important;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
}

#bananaPage .upload-section h3,
#bananaPage .input-settings-section h3,
#bananaPage .results h3 {
  margin-bottom: var(--space-2);
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

#bananaPage .upload-section h3 {
  justify-content: stretch;
  display: none;
}

#bananaPage .upload-section h3 > span,
#bananaPage .upload-section h3::before {
  display: none;
}

#bananaPage .upload-section h3::before,
#bananaPage .input-settings-section h3::before,
#bananaPage .results h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ade80, #16a34a);
}

#bananaPage .results,
#bananaPage .results.compact {
  background: #111827;
}

#bananaPage .status-text {
  font-size: 13px;
  font-weight: 500;
}

#bananaPage .status-waiting,
#ecommercePanel .status-waiting {
  color: #facc15;
}

#bananaPage .status-success,
#ecommercePanel .status-success {
  color: #4ade80;
}

#bananaPage .status-failed,
#ecommercePanel .status-failed {
  color: #f87171;
}

#bananaPage .status-paying,
#ecommercePanel .status-paying {
  color: #60a5fa;
}

body.theme-light #bananaPage .upload-section,
body.theme-light #bananaPage .input-settings-section,
body.theme-light #bananaPage .results {
  background: #d7dde5 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: #111827 !important;
}

body.theme-light #bananaPage .upload-section h3,
body.theme-light #bananaPage .input-settings-section h3,
body.theme-light #bananaPage .results h3 {
  color: #374151 !important;
}

body.theme-light #bananaPage .upload-section h3::before,
body.theme-light #bananaPage .input-settings-section h3::before,
body.theme-light #bananaPage .results h3::before {
  background: linear-gradient(180deg, #3b82f6, #22c55e);
}

body.theme-light #bananaPage .main-content select.dark-select {
  background: #f9fafb !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.9) !important;
}

body.theme-light #bananaPage .main-content select.dark-select:focus {
  background: #ffffff !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3) !important;
}

body.theme-light #bananaPage .results.compact #textOutput {
  background: #f9fafb !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}
