/* ── Custom Note Prompts Section ── */

#custom-note-prompts-section {
  display: flex;
  flex-direction: column;
}

/* Template dropdown area */
.custom-prompt-template-select {
  margin-bottom: 1rem;
}

.custom-prompt-template-select label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700, #374151);
}

/* Label + Clear row */
.prompt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

#custom-prompt-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700, #374151);
}

.prompt-clear-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--gray-500, #6b7280);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.prompt-clear-btn:hover {
  color: var(--red-600, #dc2626);
}

/* Textarea */
.user-prompt-textarea {
  border: 1px solid var(--grey, #e5e7eb);
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

.user-prompt-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Save actions row */
.custom-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Save feedback toast */
.save-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #16a34a;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Info box */
.custom-prompt-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e3a5f;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.custom-prompt-info-box > i {
  color: #3b82f6;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Active Customizations */
#active-customizations {
  margin-top: 1.5rem;
  border-top: 1px solid var(--grey, #e5e7eb);
  padding-top: 1rem;
}

#active-customizations h3 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900, #111827);
}

.active-customization-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.customization-name {
  font-weight: 500;
  color: var(--gray-900, #111827);
  white-space: nowrap;
  flex-shrink: 0;
}

.customization-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Dark mode overrides */
body.dark-mode .custom-prompt-info-box {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border-left-color: #3b82f6;
}

body.dark-mode .custom-prompt-info-box > i {
  color: #60a5fa;
}

body.dark-mode .active-customization-item {
  background: var(--gray-800, #1f2937);
  border-color: var(--gray-700, #374151);
}

body.dark-mode .customization-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
