/* Chart with Analysis Layout */
.chart-card.with-analysis {
    padding-bottom: 15px;
}

.chart-with-analysis {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-container-inner {
    flex: 0 0 300px;
    width: 100%;
    margin-bottom: 15px;
}

.chart-analysis {
    background-color: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid rgba(79, 70, 229, 0.5);
}

.dark-mode .chart-analysis {
    background-color: rgba(99, 102, 241, 0.15);
    border-left: 3px solid rgba(99, 102, 241, 0.7);
}

.analysis-header {
    font-weight: 600;
    font-size: 16px;
    color: #4f46e5;
    margin-bottom: 10px;
    text-align: left;
}

.dark-mode .analysis-header {
    color: #818cf8;
}

.analysis-points {
    margin: 0;
    padding-left: 20px;
    text-align: left;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.dark-mode .analysis-points {
    color: #cbd5e1;
}

.analysis-points li {
    margin-bottom: 6px;
}

.analysis-points li:last-child {
    margin-bottom: 0;
}

/* Enhanced insight cards for new additions */
.insight-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .insight-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.insight-icon i.fa-search-dollar {
    color: #10b981; /* Emerald color for search pattern icon */
}

.insight-icon i.fa-user-clock {
    color: #f59e0b; /* Amber color for return customer icon */
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .chart-with-analysis {
        flex-direction: row;
    }
    
    .chart-container-inner {
        flex: 0 0 60%;
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .chart-analysis {
        flex: 0 0 40%;
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    .distribution-row {
        flex-direction: column;
    }
    
    .distribution-row .chart-card {
        margin-bottom: 20px;
    }
}
