/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require_tree .
 *= require_self
 */

/* TipTap Editor Styles */
.ProseMirror {
  min-height: 150px;
  padding: 0.5rem;
  outline: none;
  line-height: 1.4;
}

.ProseMirror p {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.ProseMirror * {
  margin-top: 0;
  line-height: 1.3;
}

.ProseMirror p + p,
.ProseMirror ul + p,
.ProseMirror ol + p,
.ProseMirror blockquote + p {
  margin-top: 0.3rem;
}

.ProseMirror h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.25rem;
}

.ProseMirror h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.ProseMirror h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.ProseMirror ul,
.ProseMirror ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.ProseMirror ul {
  list-style-type: disc;
}

.ProseMirror ol {
  list-style-type: decimal;
}

.ProseMirror blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.ProseMirror a {
  color: #4f46e5;
  text-decoration: underline;
}

/* Task List Styling */
ul[data-type="taskList"] {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

/* Reset and target TipTap task list */
.ProseMirror ul[data-type="taskList"] {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

/* Fix li container */
.ProseMirror li.task-item {
  display: flex;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  min-height: 20px;
  position: relative;
}

/* Target the paragraph inside the div in task-item */
.ProseMirror li.task-item > div > p {
  margin: 0;
  padding: 0;
  line-height: 20px;
}

/* Target the checkbox label */
.ProseMirror li.task-item > label {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  top: 0;
}

/* Create fake checkbox appearance */
.ProseMirror li.task-item > label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #6b7280;
  background-color: white;
  border-radius: 3px;
}

/* Style checked checkbox */
.ProseMirror li.task-item[data-checked="true"] > label::before {
  background-color: #6366f1;
  border-color: #6366f1;
}

/* Create checkmark */
.ProseMirror li.task-item[data-checked="true"] > label::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 3px;
  left: 6px;
}

/* Target the div containing the paragraph */
.ProseMirror li.task-item > div {
  display: block;
  margin-top: 0;
  padding-top: 0;
}

/* Style for completed task */
.ProseMirror li.task-item[data-checked="true"] > div {
  color: #9ca3af;
  text-decoration: line-through;
}

/* Hide any native elements that might interfere */
.ProseMirror li.task-item input[type="checkbox"] {
  display: none;
}

/* Remove any conflicting/redundant styles */
.ProseMirror ul[data-type="taskList"] input[type="checkbox"],
.ProseMirror ul[data-type="taskList"] .task-content {
  /* Reset styles */
  display: none;
}

/* Mention styling */
.mention {
  color: #4f46e5 !important;
  font-weight: 500;
  background-color: transparent;
  border-radius: 0.25rem;
  padding: 0;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  display: inline;
  vertical-align: baseline;
  transition: all 0.2s ease;
}

.mention:hover {
  background-color: rgba(79, 70, 229, 0.05);
  text-decoration: underline !important;
  color: #4338ca;
}

/* Fix strike-through on mentions in checked tasks */
.ProseMirror li.task-item[data-checked="true"] .mention {
  text-decoration: line-through !important;
  color: #9ca3af !important;
}

/* Tippy tooltip styling */
.tippy-box {
  border-radius: 0.375rem;
}

.mention-suggestions {
  font-size: 0.875rem;
}

.mention-item {
  transition: background-color 0.2s;
}

.mention-item-active {
  background-color: #f3f4f6 !important;
}

/* Clickable day row styles */
.divide-y > li a.block {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s;
}

.divide-y > li a.block:hover .p-1\.5 {
  color: #4f46e5; /* Indigo-600 - matches your theme */
}

.divide-y > li a.block:active {
  background-color: #f9fafb; /* Gray-50 - subtle feedback when clicked */
}

/* React Entry Tasks - Drag and drop styles */
.task-list li {
  cursor: move;
}

.task-list li.dragging {
  opacity: 0.5;
}

.task-list li.drag-over {
  border-top: 2px solid #3b82f6;
  background-color: #eff6ff;
}

/* Make drag handle more prominent on hover */
.drag-handle {
  opacity: 0.3;
  transition: opacity 0.2s;
}

.task-item:hover .drag-handle {
  opacity: 1;
}

/* Prevent text selection during drag */
.task-list li[draggable="true"] {
  user-select: none;
  -webkit-user-select: none;
}

/* Visual feedback when hovering drag handle */
.drag-handle:hover {
  color: #2563eb;
  transform: scale(1.1);
}
EOF < /dev/null