body {
    font-family: 'Inter', sans-serif;
}
table.dataTable tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}
table.dataTable tbody tr:hover {
    background-color: #eef2ff;
}
.tab-btn {
    transition: all 0.3s;
}
.tab-btn.active {
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
}
.metric-card {
    transition: all 0.3s ease;
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.apexcharts-tooltip {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none !important;
    border-radius: 0.5rem;
}
.chart-container {
    position: relative;
}
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.trade-annotation {
    cursor: pointer;
}

/* Tooltip styling */
.tooltip-container {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.tooltip {
  visibility: hidden;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Arrow for tooltip */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show the tooltip when hovering over the container */
.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tooltip {
    width: 200px;
    left: auto;
    right: 0;
    transform: none;
  }
  
  .tooltip::after {
    left: auto;
    right: 10px;
  }
}
