/* Journey Modals React Island */

.journey-modal-content {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Form layout */
.journey-form-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.journey-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journey-form-hint {
  color: #6c757d;
  font-size: 0.8rem;
}

.journey-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e8dcc8;
}

.journey-form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin: 8px 0 0;
}

.journey-form-loading {
  color: #6c757d;
  text-align: center;
  padding: 20px 0;
}

/* Candidate display */
.journey-candidate-you {
  padding: 8px 12px;
  background: #f5f1eb;
  border: 1px solid #e8dcc8;
  border-radius: 8px;
  color: #495057;
  font-size: 0.9rem;
}

.journey-candidate-email-hint {
  color: #6c757d;
  font-size: 0.85rem;
}

/* Recruiter combobox */
.journey-combobox-wrapper {
  position: relative;
}

.journey-combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8dcc8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}

.journey-combobox-option {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  cursor: pointer;
  gap: 2px;
}

.journey-combobox-option:hover {
  background: #f5f1eb;
}

.journey-combobox-name {
  font-size: 0.9rem;
  color: #333;
}

.journey-combobox-email {
  font-size: 0.8rem;
  color: #6c757d;
}

/* TipTap editor */
.journey-tiptap-wrapper {
  border: 1px solid #ced4da;
  border-radius: 8px;
  overflow: hidden;
}

.journey-tiptap-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: #f5f1eb;
  border-bottom: 1px solid #e8dcc8;
  flex-wrap: wrap;
}

.journey-tiptap-btn {
  padding: 3px 8px;
  font-size: 0.8rem;
  border: 1px solid #e8dcc8;
  border-radius: 4px;
  background: #fff;
  color: #5d4e37;
  cursor: pointer;
  line-height: 1.4;
}

.journey-tiptap-btn:hover {
  background: #e8dcc8;
}

.journey-tiptap-btn.is-active {
  background: #5d4e37;
  color: #fff;
  border-color: #5d4e37;
}

.journey-tiptap-content {
  min-height: 100px;
  padding: 10px 12px;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.journey-tiptap-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #e8dcc8;
  margin: 0 2px;
  align-self: center;
}

.journey-tiptap-content p { margin: 0 0 8px; }
.journey-tiptap-content p:last-child { margin-bottom: 0; }
.journey-tiptap-content ul,
.journey-tiptap-content ol { padding-left: 20px; margin: 0 0 8px; }
.journey-tiptap-content ul { list-style-type: disc; }
.journey-tiptap-content ol { list-style-type: decimal; }
.journey-tiptap-content li { display: list-item; }
.journey-tiptap-content h1 { font-size: 1.4em; font-weight: 700; margin: 0 0 8px; }
.journey-tiptap-content h2 { font-size: 1.2em; font-weight: 700; margin: 0 0 8px; }
.journey-tiptap-content h3 { font-size: 1.05em; font-weight: 700; margin: 0 0 8px; }
.journey-tiptap-content blockquote {
  border-left: 3px solid #c4a882;
  margin: 0 0 8px;
  padding: 4px 12px;
  color: #7a6f5e;
  font-style: italic;
}
.journey-tiptap-content pre {
  background: #f0ece4;
  border: 1px solid #e8dcc8;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.85em;
  margin: 0 0 8px;
  overflow-x: auto;
}
.journey-tiptap-content code { font-family: monospace; font-size: 0.85em; }
.journey-tiptap-wrapper .journey-tiptap-content ul[data-type="taskList"] { list-style: none; padding-left: 4px; }
.journey-tiptap-wrapper .journey-tiptap-content ul[data-type="taskList"] > li { display: flex; align-items: center; gap: 6px; }
.journey-tiptap-wrapper .journey-tiptap-content ul[data-type="taskList"] > li > label { flex-shrink: 0; }
.journey-tiptap-wrapper .journey-tiptap-content ul[data-type="taskList"] > li > div { flex: 1; min-width: 0; }

/* Contextual event fields */
.event-contextual-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: #faf6f0;
  border: 1px solid #e8dcc8;
  border-radius: 8px;
}

/* Journey controls (portal) */
.journey-controls {
  display: inline-flex;
  align-items: center;
}

.journey-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #8b7355;
  border-radius: 50px;
  background: #fff;
  color: #5d4e37;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.journey-dropdown-btn:hover {
  background: #f5f1eb;
  border-color: #5d4e37;
}

.journey-dropdown-arrow {
  font-size: 0.6rem;
  line-height: 1;
}

.journey-dropdown-list {
  background: #fff;
  border: 1px solid #e8dcc8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.journey-dropdown-item {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

.journey-dropdown-item:hover {
  background: #f5f1eb;
  color: #5d4e37;
}
/* Inline link bar for TipTap editor */
.journey-link-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: #faf6f0;
  border-bottom: 1px solid #e8dcc8;
}

.journey-link-input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #8b7355;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #3e3527;
  background: #fff;
}

.journey-link-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.25);
}

.journey-link-apply {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #5d4e37;
  color: #faf6f0;
  border: 1px solid #5d4e37;
}

.journey-link-apply:hover {
  background: #3e3527;
}

.journey-link-cancel {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  color: #7a6f5e;
  border: 1px solid #c4a882;
}

.journey-link-cancel:hover {
  background: #e8dcc8;
}
