/* --- General & Desktop Styling --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.language-switch {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #005A9E;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}
.language-switch:hover {
    background-color: #003d6b;
}

header {
    text-align: center;
    padding: 20px 40px;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

h1 { color: #005A9E; margin-bottom: 5px; }

.controls {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background-color: #fff;
    width: 100%;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.control-group { font-size: 1.1em; }
.control-group input[type="range"] { width: 250px; }

.comparison-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    gap: 20px;
    flex-grow: 1;
    box-sizing: border-box;
}

.panel {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 48%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid;
    box-sizing: border-box;
}

.panel-no-dlb { border-color: #d9534f; }
.panel-dlb { border-color: #5cb85c; }
.panel-header { text-align: center; width: 100%; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.panel-header h2 { margin-top: 0; }
.panel-header .description { font-size: 0.9em; color: #666; min-height: 40px; }
.charger-visual img { max-width: 150px; height: auto; }

/* Power Display & Animations (Same as before) */
.power-display{width:90%;height:80px;margin-top:30px;position:relative}.power-bar-container{width:100%;height:50px;background-color:#e9ecef;border-radius:5px;overflow:hidden;display:flex;position:relative}.power-bar{height:100%;transition:width .5s ease-in-out}.home-usage{background-color:#007bff}.ev-usage{background-color:#fd7e14}.overload{background-color:#dc3545}.capacity-line{position:absolute;top:-5px;bottom:-5px;width:3px;background-color:#333;transition:left .5s ease-in-out;z-index:10}.capacity-line::after{content:'CAPACITY';position:absolute;top:-25px;left:-30px;font-size:12px;font-weight:bold}.readouts{margin-top:20px;font-size:1.1em;text-align:center}.readouts .total{font-size:1.3em;margin-top:10px}.status-message{font-weight:bold;font-size:1.4em;margin-top:15px;padding:8px;border-radius:5px}#no-dlb-status.safe{color:#5cb85c}#no-dlb-status.danger{color:#fff;background-color:#d9534f;animation:pulse 1s infinite}#dlb-status{color:#5cb85c}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}.fire-animation{position:absolute;left:100%;top:-20px;font-size:5em;display:none;animation:flicker .2s infinite;text-shadow:0 0 10px #fefcc9,0 0 20px #feec85,0 0 30px #ffae34,0 0 40px #ec760c,0 0 50px #cd4606}@keyframes flicker{0%,100%{opacity:1;transform:scaleY(1) rotate(-2deg)}50%{opacity:.8;transform:scaleY(.95) rotate(2deg)}}

/* --- Educational Content Section --- */
.educational-content {
    background-color: #fff;
    width: 100%;
    max-width: 1400px;
    padding: 30px 40px;
    margin: 20px 0;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.educational-content h2 { text-align: center; color: #005A9E; }
.educational-content .intro { text-align: center; font-size: 1.1em; max-width: 800px; margin: 0 auto 30px auto; color: #555; }
.points-container { display: flex; justify-content: space-between; gap: 30px; }
.point { flex: 1; text-align: center; }
.point h3 { color: #333; }
.point p { color: #666; line-height: 1.6; }

/* --- Footer --- */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: #343a40;
    color: #fff;
    position: sticky;
    bottom: 0;
}

/* --- Responsive Design --- */

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .comparison-container {
        flex-direction: column;
        align-items: center;
    }
    .panel {
        width: 80%;
        max-width: 600px;
    }
    .points-container {
        flex-direction: column;
    }
}

/* Small Screens (Mobile) */
@media (max-width: 767px) {
    .language-switch {
        padding: 5px 10px;
        font-size: 0.9em;
        top: 10px;
        right: 10px;
    }
    header { padding: 15px; }
    h1 { font-size: 1.5em; }

    .controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .control-group input[type="range"] {
        width: 100%;
    }
    .panel {
        width: 95%;
    }
    .educational-content {
        padding: 20px;
    }
}