/* Dashboard CSS Styles */

/* General Container Styling */
.social-impact .container { /* کلاس اصلی اصلاح شد */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base Chart Section Styles - نگهداری شده برای احتمال استفاده در آینده */
.charts-section {
    display: flex;
    gap: 25px;
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}
.chart-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* تنظیمات مخصوص سطر بالا و پایین - نگهداری شده برای احتمال استفاده در آینده */
.top-charts-row .chart-card {
    flex: 1 1 100%; 
}
.bottom-charts-row .chart-card {
    flex: 1 1 calc(50% - 13px); 
    min-width: 45%; 
}


/* 1. Top Stat Cards (KPIs) */
.kpi-section { 
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap; 
}
.kpi-card {
    flex: 1;
    min-width: 250px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-right: 5px solid; 
}
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.kpi-card .number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}
.kpi-card .label {
    font-size: 1.1em;
    color: #6c757d;
}


/* Responsiveness adjustments for Mobile (فعال شدن طرح‌بندی عمودی زیر 768px) */
@media (max-width: 768px) {
    /* KPI Section */
    .kpi-section {
        flex-direction: column;
        gap: 15px;
    }
    .kpi-card {
        min-width: 100%;
    }
    
    /* Chart Section - Stacked vertically */
    .charts-section {
        flex-direction: column;
        gap: 20px;
    }
    .chart-card {
        min-width: 100%; 
        flex: 1 1 100%; 
        height: 350px; 
    }
    
    #topicChart {
        max-height: 300px; 
        margin: 0 auto;
        display: block;
    }
}