/* trend-analysis.css */

.trend-chart-container {
    margin-bottom: 2rem;
    position: relative;
}

.chart-title {
    margin-bottom: 1rem;
}

.chart-title h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.chart-title .subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.chart-canvas-container {
    position: relative;
    height: 400px;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.chart-placeholder.loading {
    background-color: rgba(248, 249, 250, 0.8);
}

.chart-placeholder .spinner-border {
    margin-bottom: 1rem;
}

.chart-placeholder .no-data-message {
    text-align: center;
    color: #6c757d;
}

.chart-placeholder .no-data-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.chart-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.chart-stats .stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.5rem;
}

.chart-stats .stat-label {
    font-weight: 500;
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-stats .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

/* Filter styles */
.trend-filter {
    margin-bottom: 2rem;
}

.trend-filter .quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.filter-actions {
    margin-top: 1.5rem;
}

/* Combined view styles */
.combined-chart {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

/* Loading container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

/* Recommendation list */
.recommendation-list {
    padding-left: 1.25rem;
}

.recommendation-list li {
    margin-bottom: 0.75rem;
}

/* Canvas styling */
canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-stats .stat-item {
        flex: 0 0 50%;
    }
    
    .trend-filter .quick-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trend-filter .quick-filters button {
        margin-top: 0.5rem;
    }
    
    .chart-canvas-container {
        height: 300px; /* Shorter on mobile */
    }
}