/* CKEditor 5 Styles */
.ck-editor__editable {
  min-height: 150px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.ck-editor__editable_inline {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

/* Custom styling for CKEditor in job card forms */
.sign-form__input .ck-editor__editable {
  min-height: 150px;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.75rem;
  background-color: #ffffff;
}

/* Make sure CKEditor toolbar looks good */
.ck.ck-toolbar {
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  background-color: #f9fafb;
}

/* Style the editor container */
.ck.ck-editor {
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Ensure proper spacing in forms */
.sign-form__input .ck.ck-editor {
  margin-bottom: 1rem;
}

/* Todo List Styles */
.ck-content .todo-list {
  list-style: none;
  padding-left: 2.5rem;
}

.ck-content .todo-list .todo-list__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.ck-content .todo-list .todo-list__item .todo-list__item__checkbox {
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.ck-content .todo-list .todo-list__item .todo-list__item__label {
  flex-grow: 1;
  margin: 0;
}

.ck-content .todo-list .todo-list__item .todo-list__item__label .todo-list__item__label__description {
  display: block;
}

/* Styling for checked todo items */
.ck-content .todo-list .todo-list__item .todo-list__item__checkbox:checked + .todo-list__item__label {
  text-decoration: line-through;
  color: #6b7280;
}

/* Todo list in job card context */
.sign-form__input .ck-content .todo-list {
  margin: 0.5rem 0;
}

.sign-form__input .ck-content .todo-list .todo-list__item {
  padding: 0.25rem 0;
  border-bottom: 1px solid #f3f4f6;
  padding-left: 1.5rem;
}

.sign-form__input .ck-content .todo-list .todo-list__item:last-child {
  border-bottom: none;
}
