/* Chart Standardization Styles */

/* Standard Chart Heights */
.chart-container-small {
    position: relative;
    height: 250px;
}

.chart-container-medium {
    position: relative;
    height: 350px;
}

.chart-container-large {
    position: relative;
    height: 450px;
}

/* Responsive Chart Heights */
@media (max-width: 768px) {
    .chart-container-small {
        height: 200px;
    }
    
    .chart-container-medium {
        height: 280px;
    }
    
    .chart-container-large {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .chart-container-small {
        height: 180px;
    }
    
    .chart-container-medium {
        height: 250px;
    }
    
    .chart-container-large {
        height: 300px;
    }
}

/* Chart Container Wrapper */
.chart-wrapper {
    position: relative;
    width: 100%;
}

/* Empty State Styles */
.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    min-height: 200px;
}

.chart-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chart-empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Loading State Styles */
.chart-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
}

.chart-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State Styles */
.chart-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #dc3545;
    min-height: 200px;
}

.chart-error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.chart-error-state p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.chart-error-state button {
    margin-top: 1rem;
}

/* Chart Header Styles */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.chart-export-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-export-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

/* Chart Card Styles */
.chart-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.chart-card .card-body {
    padding: 1.25rem;
}

/* Responsive Chart Labels */
@media (max-width: 768px) {
    .chart-title {
        font-size: 1rem;
    }
    
    .chart-subtitle {
        font-size: 0.8rem;
    }
}
