/* Smart Recommendations Unique Styles */

/* Glassmorphism & Gradients */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
  background: rgba(19, 21, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
}

.text-gradient-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI Card */
.card-ai {
  background: var(--color-w1);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.6),
    rgba(6, 182, 212, 0.6),
    rgba(16, 185, 129, 0.6)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.card-ai:hover::before {
  opacity: 1;
}

.card-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px rgba(139, 92, 246, 0.25);
}

/* Recommendation Card */
.recommendation-card {
  background: var(--color-w1);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.recommendation-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 20px 0 0 20px;
  transition: all 0.3s ease;
}

.recommendation-card.high-priority::after {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

.recommendation-card.medium-priority::after {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.recommendation-card.low-priority::after {
  background: linear-gradient(180deg, #10b981, #059669);
}

.recommendation-card.ai-powered::after {
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
}

.recommendation-card:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px -10px rgba(99, 102, 241, 0.2);
}

/* Animations */
.ai-pulse {
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(139, 92, 246, 0.2);
  }
}

.sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* UI Elements */
.action-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.checkbox-custom {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background-color: var(--panel);
}

.checkbox-custom:checked {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #6366f1;
}

.checkbox-custom:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.confidence-score {
  display: flex;
  align-items: center;
  gap: 4px;
}

.confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.confidence-dot.active {
  background: #10b981;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-w1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.toast.show {
  transform: translateX(0);
}

/* Reusing Badge gradients since they are useful */
.badge-ai {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(6, 182, 212, 0.2)
  );
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}



