/* Styles for the custom line chart */

.line-chart-card-container {
    justify-content: flex-start; /* Aligne le contenu en haut */
}


.line-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.line-chart-area {
    flex-grow: 1;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    gap: 10px;

}

.line-chart-plot {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: relative;
    border-left: 1px solid #eee;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5em 0;
    box-sizing: border-box;
}

.grid-line {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0;
}

.grid-lines .grid-line:first-child, .grid-lines .grid-line:last-child {
    background-color: transparent;
}

.y-axis-left, .y-axis-right {
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-color, #000B10);
    font-weight: 500;
    position: relative;
}

.y-axis-left {
    grid-column: 1 / 2;
    align-items: flex-end;
    padding-right: 10px;
}

.y-axis-right {
    grid-column: 3 / 4;
    align-items: flex-start;
    padding-left: 10px;
}

.y-axis-title {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-weight: 600;
    white-space: nowrap;
}

.y-axis-left .y-axis-title {
    left: -25px;
    color: #6c63ff;
}

.y-axis-right .y-axis-title {
    right: -25px;
    color: #60d394;
}

.x-axis {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 0 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cpa-line {
    stroke: #6c63ff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.spend-line {
    stroke: #60d394;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cpa-fill {
    fill: #6c63ff;
    fill-opacity: 0.1;
}

.spend-fill {
    fill: #60d394;
    fill-opacity: 0.15;
}

.data-point {
    stroke-width: 2;
    stroke: #fff;
}

.cpa-point {
    fill: #6c63ff;
}

.spend-point {
    fill: #60d394;
}
