.chart-container {
    padding: 10px;
}

.chart-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #fff;
}

.chart-card-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.chart-title {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.chart-card-body {
    padding: 20px;
    position: relative;
}

.chart-select-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.chart-select-container:first-child {
    flex: 3;
}

.chart-select-container:last-child {
    flex: 7;
}

.chart-select {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 12px;
    padding-right: 30px;
    appearance: none;
}

.chart-canvas-container {
    height: 300px;
    width: 100%;
}

.chart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.chart-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.chart-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: chart-spin 1s linear infinite;
}

@keyframes chart-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.chart-date-range {
    margin-top: 15px;
    width: 100%;
}

.date-range-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.date-input-container label {
    margin-left: 5px;
    margin-right: 10px;
    white-space: nowrap;
    font-size: 14px;
}

.date-input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .date-range-row {
        flex-direction: column;
        gap: 5px;
    }

    .date-input-container {
        width: 100%;
    }
}
