/******* General Chart Styling *******/
body {
    font-family: sans-serif;
}

h1, h2 {
    text-align: center;
    color: #333;
}

.chart-container {
    width: 100%;
    /* min-height needed for SVG responsiveness in some browsers */
    min-height: 450px;
    position: relative; /* Needed for absolute positioning of tooltip */
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    margin-top: 15px;
}

.tooltip {
    position: absolute;
    text-align: left;
    padding: 8px;
    font: 12px sans-serif;
    background: lightsteelblue;
    border: 0px;
    border-radius: 8px;
    pointer-events: none; /* Tooltip should not interfere with mouse events */
    white-space: pre-line; /* Allows line breaks in tooltip text */
}

.axis path,
.axis line {
    fill: none;
    stroke: #333;
    shape-rendering: crispEdges;
}

.axis text {
    font-size: 11px;
    fill: #333;
}

.controls label {
    font-weight: bold;
    font-size: 0.9em;
}

/****** Gantt Chart Specific ******/
.gantt-rect {
    stroke: #333;
    stroke-width: 1;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gantt-rect:hover {
    opacity: 0.7;
}

.gantt-rect.state-closed {
    fill: #90ee90; /* Light green */
}

.gantt-rect.state-open {
    fill: #ffb6c1; /* Light pink */
}

.gantt-axis-label {
    text-anchor: middle;
    font-size: 12px;
    fill: #333;
}


/****** Heatmap Specific ******/
.heatmap-cell {
    cursor: pointer;
    transition: stroke-width 0.2s, stroke 0.2s;
}

.heatmap-cell:hover {
    stroke-width: 2;
    stroke: #333;
}

.scatter-axis-label {
     text-anchor: middle;
     font-size: 12px;
     fill: #333;
}

/****** Bar Chart Specific ******/
.bar-rect {
    fill: steelblue;
    cursor: pointer;
    transition: fill 0.2s;
}

.bar-rect:hover {
    fill: orangered;
}

.bar-axis-label {
     text-anchor: middle;
     font-size: 12px;
     fill: #333;
} 