@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Option Cards / Chips Selection Styling */
.option-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card.selected {
  background-color: #0058be !important;
  color: #ffffff !important;
  border-color: #0058be !important;
  box-shadow: 0 4px 12px rgba(0, 88, 190, 0.25);
}

.option-card.selected .material-symbols-outlined,
.option-card.selected span,
.option-card.selected h4,
.option-card.selected p {
  color: #ffffff !important;
}

.dark .option-card.selected {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Rec Count Buttons */
.rec-count-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.rec-count-btn.selected {
  background-color: #0058be !important;
  color: #ffffff !important;
  border-color: #0058be !important;
  box-shadow: 0 2px 8px rgba(0, 88, 190, 0.25);
}

.dark .rec-count-btn.selected {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Skeleton Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0.6) 0%,
    rgba(241, 245, 249, 0.95) 50%,
    rgba(226, 232, 240, 0.6) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark .shimmer {
  background: linear-gradient(
    90deg,
    rgba(51, 65, 85, 0.5) 0%,
    rgba(71, 85, 105, 0.8) 50%,
    rgba(51, 65, 85, 0.5) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Custom Scrollbar for Left and Right Panels */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 9999px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(75, 85, 99, 0.6);
}

/* Chart Canvas Wrapper */
.chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 420px;
}
