/* Comment Component Styles - Chat Bubble Design */

.comment {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.comment-bubble {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  max-width: 75%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.comment-author {
  font-weight: 600;
  color: #212529;
}

.comment-timestamp {
  color: #6c757d;
  font-size: 0.8rem;
}

.comment-edited {
  color: #6c757d;
  font-size: 0.75rem;
  font-style: italic;
}

.comment-body.trix-content {
  border: none;
  padding: 0;
  background: transparent;
  min-height: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

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

.comment-trix-editor {
  min-height: 100px;
  max-height: 300px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.comment-actions {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.comment:hover .comment-actions {
  opacity: 1;
}

.comment-actions .dropdown-toggle {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  color: #6c757d;
  background: transparent;
  border: none;
}

.comment-actions .dropdown-toggle:hover {
  color: #212529;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.card-comments {
  border-top: 1px solid #dee2e6;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.comments-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.comments-section-header h6 {
  margin: 0;
  font-weight: 600;
}

.comments-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Scrollbar styling for comments list */
.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.new-comment {
  margin-top: 1rem;
}

.new-comment .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Highlight animation for new comments */
@keyframes highlight {
  0% { background-color: #fff3cd; }
  100% { background-color: #f8f9fa; }
}

.highlight-animation .comment-bubble {
  animation: highlight 2s ease-out;
}

/* Edit form styling */
.comment-edit-form {
  background-color: #ffffff;
  border: 2px solid #0d6efd;
  border-radius: 12px;
  padding: 1rem;
  max-width: 75%;
}

.comment-edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
