/* Financial X-Ray Dashboard Styles */

/* Signal Colors */
.xray-signal-positive { color: #10B981; }
.xray-signal-negative { color: #EF4444; }
.xray-signal-warning { color: #F59E0B; }
.xray-signal-neutral { color: #6B7280; }

/* Metric Card Animation */
.xray-metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xray-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Count-up Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xray-countup {
  animation: countUp 0.6s ease-out forwards;
}

/* Chart Slide-in Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.xray-chart-container {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Chat Message Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#xray-messages > div {
  animation: fadeInUp 0.3s ease-out forwards;
}

/* AI Typing Indicator */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.xray-typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: #F3F4F6;
  border-radius: 16px;
}

.xray-typing span {
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

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

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

/* Progress Bar Animation */
.xray-progress-bar {
  transition: width 0.8s ease-out;
}

/* Quick Action Button Hover */
.xray-quick-action {
  transition: all 0.2s ease;
}

.xray-quick-action:hover {
  transform: scale(1.02);
  background-color: #EEF2FF;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .xray-dashboard .lg\:sticky {
    position: relative;
    top: auto;
  }
}

/* Dark Mode Enhancements */
.dark .xray-metric-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.dark .xray-typing {
  background: #374151;
}

.dark .xray-typing span {
  background: #6B7280;
}

/* Custom Scrollbar for Chat */
#xray-messages::-webkit-scrollbar {
  width: 6px;
}

#xray-messages::-webkit-scrollbar-track {
  background: transparent;
}

#xray-messages::-webkit-scrollbar-thumb {
  background-color: #D1D5DB;
  border-radius: 3px;
}

.dark #xray-messages::-webkit-scrollbar-thumb {
  background-color: #4B5563;
}
