@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prevent content jumping when modal opens */
body.modal-open {
    overflow: hidden;
}

/* Distribution map styling */
.distribution-map-container {
    height: 500px;
    background-color: #f9f9f9;
}

.district {
    stroke: #fff;
    stroke-width: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.district:hover {
    opacity: 0.8;
    stroke-width: 2;
}

.district-label {
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    fill: #333;
}

/* Plant card styling */
.plant-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Allergen risk indicator */
.allergen-risk {
    display: flex;
    align-items: center;
}

.risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
}

/* Modal animation */
#plantModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#plantModal.visible {
    opacity: 1;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    max-height: 300px; /* Enforce maximum height */
    overflow: hidden; /* Prevent overflow */
}
