/* Main animations for UI elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Applied animations */
.user-message {
  animation: slideInRight 0.3s ease-out forwards;
  position: relative;
  padding-left: 10px;
}



.bot-message {
  animation: slideInLeft 0.4s ease-out forwards;
  position: relative;
  padding-left: 10px;
}



.lecture-item {
  transition: all 0.2s ease;
  position: relative;
  /* padding-left: 25px; */
}

.lecture-item::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lecture-item:hover {
  transform: translateX(5px);
  color: #333333;
}

.send-button {
  transition: all 0.2s ease;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.send-button:active {
  transform: translateY(1px);
}

.navbar {
  animation: fadeIn 0.5s ease-out;
}

.sidebar-content {
  animation: fadeIn 0.6s ease-out;
}

.delete-button:hover {
  background-color: #dc3545;
  color: white;
  transform: translateY(-2px);
}

.show-link-btn, .show-full-image-btn {
  transition: all 0.2s ease;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.show-link-btn:hover, .show-full-image-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Typing indicator animation */
@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

.typing-indicator span {
  animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Running reminder styling */
.running-reminder {
  position: relative;
  padding-left: 30px;
}

.running-reminder::before {
  content: "⏳";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
} 