body{
    font-family:Arial,sans-serif;
    max-width:700px;
    margin:auto;
    padding:20px;
    background:#f5f5f5;
}

.card{
    background:white;
    padding:20px;
    margin-bottom:20px;
    border-radius:10px;
    box-shadow:0 2px 5px rgba(0,0,0,.1);
}

button{
    padding:12px 20px;
    margin:5px;
    font-size:16px;
}

input[type=range]{
    width:100%;
}

#log{
    background:black;
    color:#00ff00;
    padding:10px;
    height:200px;
    overflow:auto;
    font-family:monospace;
}

.status{
    font-weight:bold;
}

.power-row {
    margin: 10px 0;
}

.power-row span:first-child {
    display: inline-block;
    width: 90px;
}

.power-row span:last-child {
    display: inline-block;
    width: 80px;
    text-align: right;
}

.bar {
    display: inline-block;
    width: calc(100% - 180px);
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    vertical-align: middle;
}

.fill {
    height: 100%;
    width: 0%;
    background: #4caf50;
    transition: width 0.3s;
}