/* =============================================
   BELLAMY GRAPH BARS - Elementor Widget CSS
   ============================================= */

.bellamywidget-graph-bars,
.bellamywidget-graph-bars * {
    box-sizing: border-box;
}

.bellamywidget-graph-bars {
    position: relative;
    width: 100%;
}

.bellamywidget-graph-bars-canvas {
    --bellamy-graph-bar-width: 55%;
    --bellamy-graph-bar-radius: 4;
    position: relative;
    width: 100%;
    height: 360px;
}

.bellamywidget-graph-bars-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ==================== GRID ==================== */
.bellamywidget-graph-bars-grid-line {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1;
    shape-rendering: crispEdges;
}

/* ==================== BARS ==================== */
.bellamywidget-graph-bars-bar {
    fill: #0073AA;
    cursor: pointer;
    transition: fill 0.25s ease;
    transform-box: fill-box;
    transform-origin: bottom center;
}

.bellamywidget-graph-bars-bar:hover {
    fill: #005a87;
}

/* Entrance animation: bars grow up from the baseline */
.bellamywidget-graph-bars-canvas.is-animated .bellamywidget-graph-bars-bar {
    transform: scaleY(0);
    transition: transform var(--bellamy-graph-duration, 1.2s) cubic-bezier(0.22, 1, 0.36, 1);
}
.bellamywidget-graph-bars-canvas.is-animated.is-visible .bellamywidget-graph-bars-bar {
    transform: scaleY(1);
}

/* ==================== LINE & AREA ==================== */
.bellamywidget-graph-bars-line {
    fill: none;
    stroke: #0073AA;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bellamywidget-graph-bars-area {
    fill: rgba(0, 115, 170, 0.15);
    stroke: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.bellamywidget-graph-bars-canvas.is-visible .bellamywidget-graph-bars-area {
    opacity: 1;
}

/* Entrance animation: the line "draws" itself via dash-offset */
.bellamywidget-graph-bars-canvas.is-animated .bellamywidget-graph-bars-line {
    transition: stroke-dashoffset var(--bellamy-graph-duration, 1.2s) ease;
}

/* ==================== POINTS ==================== */
.bellamywidget-graph-bars-point {
    fill: #ffffff;
    stroke: #0073AA;
    stroke-width: 2;
    r: 6;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, r 0.2s ease;
}
.bellamywidget-graph-bars-canvas.is-visible .bellamywidget-graph-bars-point {
    opacity: 1;
}
.bellamywidget-graph-bars-point:hover {
    r: 8;
}

/* ==================== AXIS LABELS ==================== */
.bellamywidget-graph-bars-x-label,
.bellamywidget-graph-bars-y-label {
    position: absolute;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.bellamywidget-graph-bars-x-label {
    transform: translateX(-50%);
    text-align: center;
}

.bellamywidget-graph-bars-y-label {
    transform: translateY(-50%);
    text-align: right;
}

/* ==================== VALUE LABELS ==================== */
.bellamywidget-graph-bars-value {
    position: absolute;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transform: translate(-50%, -100%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
    pointer-events: none;
}
.bellamywidget-graph-bars-canvas.is-visible .bellamywidget-graph-bars-value {
    opacity: 1;
}

/* ==================== TOOLTIP ==================== */
.bellamywidget-graph-bars-tooltip {
    position: absolute;
    z-index: 10;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bellamywidget-graph-bars-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.bellamywidget-graph-bars-tooltip-label {
    opacity: 0.7;
    margin-right: 6px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 767px) {
    .bellamywidget-graph-bars-x-label,
    .bellamywidget-graph-bars-y-label {
        font-size: 11px;
    }
}
