/* ADHD Music Automation Platform - Custom Styles */

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Frequency visualizer */
.frequency-bar {
  background: linear-gradient(to top, #8B5CF6, #EC4899);
  border-radius: 2px;
  animation: pulse 2s infinite;
  transition: height 0.3s ease;
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.active {
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 2s infinite;
}

.status-indicator.processing {
  background-color: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
  animation: pulse 1s infinite;
}

.status-indicator.error {
  background-color: #EF4444;
  box-shadow: 0 0 10px #EF4444;
}

/* Session cards */
.session-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.6);
}

/* Progress bars */
.progress-bar {
  background: linear-gradient(90deg, #8B5CF6, #EC4899, #10B981);
  background-size: 200% 100%;
  animation: gradient 3s ease infinite;
}

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

/* Tooltips */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Calendar styles */
.calendar-day {
  min-height: 60px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background-color: rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.calendar-day.has-session {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.5);
}

/* Queue item animations */
.queue-item {
  animation: slideIn 0.5s ease;
}

.queue-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.queue-item:nth-child(even) {
  animation-delay: 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1F2937;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8B5CF6, #EC4899);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #A78BFA, #F472B6);
}

/* Notification styles */
.notification-enter {
  animation: slideIn 0.3s ease;
}

.notification-exit {
  animation: slideOut 0.3s ease;
}

@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Charts container */
.chart-container {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

/* Frequency display */
.frequency-display {
  font-family: 'Courier New', monospace;
  background: linear-gradient(90deg, #8B5CF6, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  font-weight: bold;
}

/* Button hover effects */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

/* Glass morphism effect */
.glass {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .session-card {
    margin-bottom: 1rem;
  }
  
  .calendar-day {
    min-height: 40px;
    font-size: 0.75rem;
  }
}