/* Custom styles for the topic input modal */
#topicInputModal .modal-content {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#topicInputModal .modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

#topicInputModal .modal-title {
  color: #2c3e50;
  font-size: 1.5rem;
}

#topicInputModal textarea.form-control {
  min-height: 120px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#topicInputModal textarea.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

#topicInputModal .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 5px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s;
}

#topicInputModal .btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

#topicInputModal .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  border-radius: 5px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s;
}

#topicInputModal .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Animation for the progress bar */
#topicInputModal .progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

/* Welcome message styling */
.welcome-message {
  border-left: 5px solid #007bff;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.welcome-message:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.welcome-title {
  font-weight: 600;
  color: #0056b3;
}

.welcome-text {
  color: #495057;
}

/* Generated topics message styling */
.generated-topics-message {
  background: linear-gradient(to right, #e9f7ef, #f8f9fa);
  border-left: 5px solid #28a745;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* New topic highlight animation */
.new-topic {
  position: relative;
}

.new-topic::before {
  content: "New";
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #28a745;
  color: white;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 10px;
  font-weight: bold;
  animation: fade-in-out 3s ease-in-out;
  opacity: 0;
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* Species item styles */
.species-item.new-topic {
  border-width: 2px;
}
