/* Task Notes Modal Styles */

.task-notes {
  padding: 0;
}

.task-notes__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Add Note Form */
.task-notes__form {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem;
}

.task-notes__form-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-notes__form-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-notes__textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.task-notes__textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.task-notes__form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-notes__char-count {
  font-size: 0.75rem;
  color: #6c757d;
}

.task-notes__char-count--warning {
  color: #dc3545;
  font-weight: 500;
}

.task-notes__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.task-notes__submit-btn:hover {
  background: #0052a3;
}

.task-notes__submit-btn:active {
  transform: scale(0.98);
}

/* Notes List */
.task-notes__list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.task-notes__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f0f7ff;
  border: 1px solid #cce5ff;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #004085;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.task-notes__info i {
  flex-shrink: 0;
  color: #0066cc;
}

.task-notes__list-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.task-notes__list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
  padding-right: 0.5rem;
}

.task-notes__list::-webkit-scrollbar {
  width: 6px;
}

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

.task-notes__list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.task-notes__list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Individual Note */
.task-notes__note {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.task-notes__note:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-notes__note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.task-notes__note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #6c757d;
}

.task-notes__note-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  color: #495057;
}

.task-notes__note-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.task-notes__note-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: #e7f3ff;
  color: #0066cc;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.task-notes__delete-btn {
  padding: 0.25rem 0.5rem;
  background: white;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.task-notes__delete-btn:hover {
  background: #dc3545;
  color: white;
}

.task-notes__note-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #212529;
  white-space: pre-wrap;
  word-break: break-word;
}

.task-notes__note-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.task-notes__category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Loading & Error States */
.task-notes__loading {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.task-notes__empty {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
}

.task-notes__error {
  text-align: center;
  padding: 2rem;
  color: #dc3545;
  font-weight: 500;
}