/* TipTap Editor Styles */
.ProseMirror {
  outline: none;
  min-height: 400px;
}

.ProseMirror blockquote {
  margin: 0 0 0 0.3em;
  padding: 0 0 0 0.6em;
  border-left: 0.3em solid #ccc;
}
.ProseMirror ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.ProseMirror ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
}

.ProseMirror li {
  list-style-position: outside;
}

.ProseMirror:focus {
  outline: none;
}

/* Placeholder styles */
.ProseMirror p.is-editor-empty:first-child::before {
  color: #adb5bd;
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}

/* Upload indicator styles */
.upload-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 12px 16px;
  width: 300px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e5e7eb;
}

.upload-status {
  font-size: 14px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-status::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  border-top-color: transparent;
  animation: upload-spinner 1s linear infinite;
}

.upload-indicator-progress {
  height: 4px;
  background-color: #3b82f6;
  border-radius: 2px;
  width: 100%;
  animation: upload-progress 2s ease-in-out infinite;
}

.upload-indicator-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.comment-tiptap .ProseMirror {
  min-height: 1.25rem;
}

.comment-tiptap .ProseMirror p {
  margin: 0;
}

.comment-body .trix-content p {
  margin: 0;
}

@keyframes upload-spinner {
  to { transform: rotate(360deg); }
}

@keyframes upload-progress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 100%; }
}