/* Container setup */
.ctrlbs-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.ctrlbs-stats-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ctrlbs-stats-summary {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ctrlbs-stats-total {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
}

/* Bar Chart */
.ctrlbs-bar-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    gap: 15px;
    margin-top: 20px;
    padding: 0 10px 30px;
}

.ctrlbs-bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 30px;
    height: 100%;
}

.ctrlbs-bar {
    width: 100%;
    background: #2271b1;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    min-height: 2px;
}

.ctrlbs-bar:hover {
    background: #135e96;
}

.ctrlbs-bar-value {
    font-size: 12px;
    color: #666;
}

.ctrlbs-bar-label {
    font-size: 12px;
    color: #666;
}

/* Pie Chart */
.ctrlbs-pie-chart {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border-radius: 50%;
}

/* Pie Chart Legend */
.ctrlbs-pie-legend {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctrlbs-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrlbs-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.ctrlbs-legend-label {
    font-size: 14px;
    color: #333;
}

.ctrlbs-legend-value {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

/* No Data Message */
.ctrlbs-no-data {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .ctrlbs-stats-container {
        grid-template-columns: 1fr;
    }

    .ctrlbs-pie-chart {
        width: 250px;
        height: 250px;
    }

    .ctrlbs-bar-chart {
        height: 200px;
    }

    .ctrlbs-bar-label {
        font-size: 10px;
    }
}