/* MonthlyTrends Chart Custom Styling */

.chart-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    max-width: 200px;
    z-index: 1000;
}

.chart-tooltip .tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.chart-tooltip .tooltip-body {
    font-size: 12px;
}

.chart-tooltip .tooltip-body > div {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-tooltip .tooltip-body i {
    font-size: 10px;
    width: 10px;
    height: 10px;
}

/* Chart container styling */
#monthly-trends-chart {
    min-height: 400px;
    position: relative;
}

/* Loading state for chart */
.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

/* Hover effects for MonthlyTrends cards */
.widget-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.widget-content {
    transition: all 0.3s ease;
    cursor: default;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    #monthly-trends-chart {
        min-height: 300px;
    }
    
    .chart-tooltip {
        font-size: 12px;
        padding: 8px;
        max-width: 180px;
    }
    
    .chart-tooltip .tooltip-body {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    #monthly-trends-chart {
        min-height: 250px;
    }
    
    .chart-tooltip {
        font-size: 11px;
        padding: 6px;
        max-width: 160px;
    }
}