/* Dashboard CSS Styles */

/* General Container Styling */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 1. Top Stat Cards (KPIs) */
.kpi-cards-container {
    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;
}
.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;
}

/* 2. Featured Cases Section */
.featured-cases-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}
.case-card {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa; /* زمینه کمی روشن‌تر */
    border-right: 5px solid #28aa45; /* خط سبز موفقیت */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}
.case-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.case-card h4 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}
.case-card .case-category {
    font-size: 0.9em;
    color: #007bff; /* آبی برای دسته بندی */
    display: block;
    margin-bottom: 15px;
}
.case-card .case-result {
    font-weight: bold;
    color: #28a745;
}
.case-card .btn-details {
    display: block;
    margin-top: 15px;
    padding: 8px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.case-card .btn-details:hover {
    background-color: #0056b3;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .kpi-cards-container, .featured-cases-container {
        flex-direction: column;
        gap: 15px;
    }
    .kpi-card, .case-card {
        min-width: 100%;
    }
}