/* insight.css */

.battery-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.battery-description {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.battery-description h2 {
    font-weight: bold;
    margin-bottom: 10px;
}

.battery-description p {
    margin: 0 0 20px 0;
}

.battery-image-container {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
}

.battery-image {
    max-width: 150px;
    height: auto;
    border: none;
    border-radius: 0;
    object-fit: contain;
}

.battery-table {
    width: 100%;
}

.battery-table table {
    width: 100%;
    border-collapse: collapse;
}

.battery-table th, .battery-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.battery-table th {
    background-color: #f2f2f2;
}

.battery-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.graph-canvas {
    display: block;
    max-width: 100%; 
    height: auto;
}

#voltageChartData, #capacityChartData {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .battery-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .battery-description, .battery-table {
        min-width: 100%;
    }

    .graph-canvas {
        height: 300px;
    }

    .battery-table th, .battery-table td {
        padding: 8px;
    }
}
