.energy-nerd-widget {
    padding: 2.5rem 1.5rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px 0 rgba(60,60,100,0.10), 0 1.5px 4px 0 rgba(60,60,100,0.08);
    width: 100%;
    margin: 2rem 0;
}

.energy-nerd-container {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.energy-form, .energy-results {
    flex: 1 1 340px;
    min-width: 320px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px 0 rgba(60,60,100,0.06);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.energy-form label {
    display: block;
    margin-bottom: 1.7rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #2d3142;
}

.energy-form input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    accent-color: #4cc9f0;
    height: 3px;
    background: linear-gradient(90deg, #4cc9f0 0%, #f72585 100%);
    border-radius: 2px;
}

.energy-form select,
.energy-form input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1.08rem;
    margin-top: 0.4rem;
    border: 1.5px solid #e0e4ea;
    border-radius: 0.5rem;
    background: #f7faff;
    transition: border 0.2s;
}
.energy-form select:focus,
.energy-form input[type="number"]:focus {
    border: 1.5px solid #4cc9f0;
    outline: none;
    background: #fff;
}

.number-input {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.number-input input {
    width: 70px;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 0.4rem;
    border: 1.5px solid #e0e4ea;
    background: #f7faff;
    transition: border 0.2s;
}
.number-input input:focus {
    border: 1.5px solid #f72585;
    background: #fff;
}

.number-input button {
    background: linear-gradient(135deg, #4cc9f0 0%, #f72585 100%);
    border: none;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 0.4rem;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 4px 0 rgba(60,60,100,0.08);
    transition: background 0.2s, transform 0.1s;
}
.number-input button:hover, .number-input button:focus {
    text-decoration: none !important;
    transform: scale(1.08);
    outline: none;
}

.bar-chart {
    position: relative;
    height: 220px;
    width: 100%;
    border: 1.5px solid #e0e4ea;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #f7faff 0%, #e0e4ea 100%);
    overflow: hidden;
    border-radius: 0.7rem;
    box-shadow: 0 1px 6px 0 rgba(60,60,100,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container {
    display: flex;
    gap: 40px;
    align-items: end;
    height: 160px;
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
    justify-content: center;
}

.bar {
    width: 80px;
    min-height: 10px;
    transition: height 0.4s cubic-bezier(.4,2,.6,1);
    position: relative;
    border-radius: 4px 4px 0 0;
}

.bar-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
    font-size: 1.05rem;
    text-shadow: 0 2px 8px rgba(60,60,100,0.18);
    top: 10px;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}
.chart-labels {
    display: flex;
    gap: 40px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #2d3142;
    font-weight: 500;
    justify-content: center;
}

.chart-label {
    text-align: center;
    width: 80px;
}

.bar-without {
    background: linear-gradient(180deg, #f72585 0%, #b5179e 100%);
    box-shadow: 0 2px 8px 0 rgba(247,37,133,0.10);
}

.bar-with {
    background: linear-gradient(180deg, #4cc9f0 0%, #4361ee 100%);
    box-shadow: 0 2px 8px 0 rgba(76,201,240,0.10);
}

.result-icons {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.result-bg{
    background: #f7faff;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 1px 4px 0 rgba(60,60,100,0.04);
    margin-bottom: 1.1rem;
}

.result-bg strong{
    font-weight: 900;
}

.small-text{
    font-size: 0.8rem;
}

.font-bold{
    font-weight: bold;
}

.result {
    font-size: 1.13rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #22223b;
    background: #f7faff;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 1px 4px 0 rgba(60,60,100,0.04);
}

.result .icon {
    font-size: 1.5rem;
    width: 2rem;
    display: inline-block;
    text-align: center;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .energy-nerd-widget {
        padding: 1.2rem 0.5rem;
    }
    .energy-nerd-container {
        gap: 1.2rem;
    }
    .energy-form, .energy-results {
        padding: 1.2rem 0.7rem;
    }
}
@media (max-width: 768px) {
    .energy-nerd-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .bar-chart {
        margin: 1.2rem auto;
    }
}
@media (max-width: 500px) {
    .energy-form, .energy-results {
        min-width: 0;
        padding: 0.7rem 0.2rem;
    }
    .bar-chart {
        width: 100%;
        height: 180px;
    }
    .chart-container {
        gap: 20px;
        padding: 10px 20px;
    }
    .bar {
        width: 120px;
    }
    .chart-labels {
        gap: 20px;
    }
    .chart-label {
        width: 120px;
        font-size: 0.7rem;
    }
}
