/**
 * PW Electricity Graphs - Chart Styles
 */

.monthly-chart-container {
    background: #f8fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 24px 10px 24px;
    max-width: 420px;
    margin: 20px auto;
    background: linear-gradient(180deg, #FFF 0%, #EEF6F8 100%);
}

.monthly-chart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.monthly-chart-title {
    color: #5BA4B4;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.monthly-chart-wrapper {
    position: relative;
    height: 350px;
}

.pw-elec-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin: 20px auto;
    max-width: 420px;
    text-align: center;
}

.pw-elec-error strong {
    font-weight: 600;
}
/* ============================================
   Monthly Bill Graph - Electricity Calculator Style
   ============================================ */

.pw-monthly-bill-result #electricity-bill-calculator {
    width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    background: #FCFDFD;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
}

.pw-monthly-bill-result .aeb-results {
    padding: 30px;
    max-width: 660px;
    margin: auto;
}

/* Chart Section */

.pw-monthly-bill-result .aeb-chart-container {
    position: relative;
    height: 250px;
    padding: 20px 0px;
}

.pw-monthly-bill-result #electricity-bill-calculator canvas {
    width: 100% !important;
    height: 100% !important;
}

.pw-monthly-bill-result .aeb-avg-line-label {
    position: absolute;
    top: 40px;
    background: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    box-shadow: 0 2px 4px 0 rgba(30, 41, 59, 0.25);
    margin: auto;
    left: 0px;
    right: 0px;
    text-align: center;
    width: 167px;
}

.pw-monthly-bill-result .aeb-avg-line-label:after {
    top: 100%;
    left: 0;
    right: 0px;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #fff;
    border-width: 8px;
    margin: auto;
}

.pw-monthly-bill-result .aeb-avg-line-label:before {
    left: 0px;
    right: 0px;
    margin: auto;
    content: "";
    height: 5px;
    width: 5px;
    position: absolute;
    border-radius: 50px;
    background: #2D788D;
    bottom: -16px;
}


/* Mobile Responsive */
@media (max-width: 767px) {
    .pw-monthly-bill-result .aeb-results {
        padding: 15px;
    }
    
    .pw-monthly-bill-result .aeb-avg-line-label {
        top: 23px;
    }
    
    .pw-monthly-bill-result .aeb-chart-container {
        padding: 0px;
    }
}

@media (max-width: 480px) {
    .pw-monthly-bill-result .aeb-chart-container {
        height: 200px;
        padding: 10px;
    }
    
    .pw-monthly-bill-result .aeb-avg-line-label {
        font-size: 12px;
        padding: 6px 8px;
    }
}