.battery-status-component {
    padding: 1%;
    background: var(--container-bg, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--container-border, #dee2e6);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
}

.battery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.battery-header h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    color: #1a202c;
    text-align: center;
    width: 100%;
}

.battery-unsupported {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
}

.battery-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    overflow: hidden;
}

.battery-overview {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.battery-level-card {
    background: #ffffff;
    border: 1px solid #d8e6f7;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.battery-level-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.battery-label {
    color: #4a5568;
    font-size: 0.88em;
    font-weight: 600;
}

.battery-level-value {
    color: #1f5e3f;
    font-size: 1.35em;
    line-height: 1;
}

.battery-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.battery-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2f855a 0%, #38a169 100%);
    transition: width 220ms ease;
}

.battery-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.battery-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    display: flex;
    align-items: center;
}

.battery-metric-value {
    color: #1a202c;
    font-size: 1.05em;
}

.battery-metric-line {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
}

.battery-metric-line .battery-label {
    flex: 0 0 auto;
}

.battery-metric-line .battery-metric-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.battery-chart-panel {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.battery-chart-title {
    font-weight: 600;
    color: #2d3748;
}

.battery-chart-container {
    min-height: 60px;
    flex: 1;
    position: relative;
}

.battery-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 920px) {
    .battery-metrics-grid {
        grid-template-columns: 1fr;
    }
}
