/* Mental Health Companion Custom Styles */

/* Smooth transitions for interactive elements */
button, input, textarea, select {
  transition: all 0.3s ease;
}

/* Focus styles for accessibility */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5b4fc;
}

/* Mood button styles */
#moodButtons button {
  font-weight: 600;
  border-width: 2px;
}

#moodButtons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#moodButtons button[data-mood="1"],
#moodButtons button[data-mood="2"] {
  border-color: #ef4444;
  color: #ef4444;
}

#moodButtons button[data-mood="1"]:hover,
#moodButtons button[data-mood="2"]:hover {
  background-color: #fef2f2;
}

#moodButtons button[data-mood="3"],
#moodButtons button[data-mood="4"] {
  border-color: #f59e0b;
  color: #f59e0b;
}

#moodButtons button[data-mood="3"]:hover,
#moodButtons button[data-mood="4"]:hover {
  background-color: #fffbeb;
}

#moodButtons button[data-mood="5"],
#moodButtons button[data-mood="6"] {
  border-color: #eab308;
  color: #eab308;
}

#moodButtons button[data-mood="5"]:hover,
#moodButtons button[data-mood="6"]:hover {
  background-color: #fefce8;
}

#moodButtons button[data-mood="7"],
#moodButtons button[data-mood="8"] {
  border-color: #84cc16;
  color: #84cc16;
}

#moodButtons button[data-mood="7"]:hover,
#moodButtons button[data-mood="8"]:hover {
  background-color: #f7fee7;
}

#moodButtons button[data-mood="9"],
#moodButtons button[data-mood="10"] {
  border-color: #22c55e;
  color: #22c55e;
}

#moodButtons button[data-mood="9"]:hover,
#moodButtons button[data-mood="10"]:hover {
  background-color: #f0fdf4;
}

/* Card hover effects */
.bg-white.rounded-lg.shadow-md {
  transition: all 0.3s ease;
}

.bg-white.rounded-lg.shadow-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gradient backgrounds for sections */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-light {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Loading spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse animation for notifications */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
}

/* Responsive design utilities */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #moodButtons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  #moodButtons button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .bg-white {
    background-color: #374151;
  }
  
  .text-gray-600 {
    color: #d1d5db;
  }
  
  .text-gray-800 {
    color: #f9fafb;
  }
}