/* D3.js specific styles - kept separate since Tailwind can't style D3 elements easily */

/* Axes */
.axis-label {
    fill: #94a3b8;
    font-size: 0.75rem;
}

.axis path,
.axis line {
    stroke: #475569;
}

.axis text {
    fill: #64748b;
    font-size: 0.625rem;
}

/* Grid */
.grid line {
    stroke: #334155;
    stroke-opacity: 0.5;
}

/* Line Chart */
.line-path {
    fill: none;
    stroke-width: 2;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    color: #f8fafc;
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tooltip-value {
    color: #94a3b8;
}

/* Bubble Chart */
.bubble {
    cursor: pointer;
    transition: opacity 0.2s;
}

.bubble:hover {
    opacity: 0.8;
}

.bubble-label {
    font-size: 0.625rem;
    fill: #f8fafc;
    text-anchor: middle;
    pointer-events: none;
}

/* Geographic Bubble Map */
.geo-bubble {
    cursor: pointer;
    transition: fill-opacity 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;
}

.geo-bubble-label {
    fill: #f1f5f9;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* Search suggestions */
.search-suggestion-item + .search-suggestion-item {
    border-top: 1px solid #334155;
}

.search-suggestion-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.search-suggestion-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Network Graph */
.network-node {
    cursor: pointer;
}

.network-link {
    stroke: #475569;
    stroke-opacity: 0.6;
}

.node-label {
    font-size: 0.625rem;
    fill: #f8fafc;
    pointer-events: none;
}

/* Heatmap */
.heatmap-cell {
    stroke: #1e293b;
    stroke-width: 1;
}

.heatmap-label {
    font-size: 0.625rem;
    fill: #94a3b8;
}

/* Trend indicators */
.trend-up {
    color: #22c55e;
}

.trend-down {
    color: #ef4444;
}

.trend-stable {
    color: #64748b;
}

/* Loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #64748b;
}

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

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

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
