/**
 * Recipe Notes Styles
 */

.recipe-note-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.note-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #495057;
}

.note-icon {
  font-size: 1.2rem;
}

.note-label {
  font-size: 0.95rem;
}

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

.note-display {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-text {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #212529;
  line-height: 1.6;
}

.note-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit-note,
.btn-delete-note {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-note:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.btn-delete-note:hover {
  background: #fff5f5;
  border-color: #dc3545;
  color: #dc3545;
}

.note-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
}

.note-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.note-form-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-save-note,
.btn-cancel-note {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-save-note {
  background: #007bff;
  color: white;
}

.btn-save-note:hover:not(:disabled) {
  background: #0056b3;
}

.btn-save-note:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel-note {
  background: #6c757d;
  color: white;
}

.btn-cancel-note:hover {
  background: #5a6268;
}

.btn-add-note {
  padding: 0.75rem;
  font-size: 0.95rem;
  border: 2px dashed #ced4da;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #6c757d;
  font-weight: 500;
}

.btn-add-note:hover {
  border-color: #007bff;
  color: #007bff;
  background: #f8f9fa;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 350px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: #28a745;
  color: white;
}

.toast-error {
  background: #dc3545;
  color: white;
}

.toast-info {
  background: #17a2b8;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .recipe-note-section {
    padding: 0.75rem;
    margin-top: 1rem;
  }

  .note-text {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .note-actions {
    flex-direction: column;
  }

  .btn-edit-note,
  .btn-delete-note {
    width: 100%;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .toast {
    max-width: 100%;
  }
}
