:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-geist-mono {
    font-family: var(--font-mono);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.president-btn {
    transition: all 0.2s ease;
    border-width: 2px;
}

.president-btn.active {
    transform: translateY(-1px);
}

.president-btn:not(.active) {
    opacity: 0.7;
}

.annotation-label {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .annotation-label {
        background: rgba(30, 30, 30, 0.9);
        color: #fff;
    }
}

/* Tooltip styling */
#tooltip {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    font-size: 14px;
    max-width: 280px;
}

@media (prefers-color-scheme: dark) {
    #tooltip {
        background: #222;
        border-color: #333;
        color: white;
    }
}
