/* Dashboard CSS Styles */

.performance-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base Chart Section Styles */
.performance-dashboard .charts-section {
    display: flex;
    gap: 25px;
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}
.performance-dashboard .chart-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.performance-dashboard .top-charts-row .chart-card {
    flex: 1 1 100%; 
}

.performance-dashboard .bottom-charts-row .chart-card {
    flex: 1 1 calc(50% - 13px); 
    min-width: 45%; 
}


/* 1. Top Stat Cards (KPIs) */
.performance-dashboard .kpi-section { 
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap; 
}
.performance-dashboard .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; 
}
.performance-dashboard .kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.performance-dashboard .kpi-card .number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}
.performance-dashboard .kpi-card .label {
    font-size: 1.1em;
    color: #6c757d;
}

/* 2. Featured Cases Section */
.performance-dashboard .featured-cases-title {
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    padding: 20px 0 10px;
    margin-bottom: 20px;
}

.performance-dashboard .featured-cases-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.performance-dashboard .featured-case-card {
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    
    background-color: #ffffff; 
    border: 1px solid #e0e0e0;
    border-top: 10px solid #28aa45; 
    border-radius: 8px;
    padding: 20px;
    
    width: calc(33.333% - 17px); 
    max-width: 350px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    min-height: 250px; 
}

.performance-dashboard .featured-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.performance-dashboard .case-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.performance-dashboard .case-domain {
    font-size: 0.9em;
    font-weight: bold;
    color: #007bff; 
    background-color: #f0f8ff;
    padding: 5px 10px;
    border-radius: 4px;
}

.performance-dashboard .case-domain i {
    margin-left: 5px;
}

.performance-dashboard .case-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0 5px;
}

.performance-dashboard .case-summary {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

.performance-dashboard .case-result {
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
    color: #27ae60;
    background-color: #ecf7ec;
    border: 1px solid #2ecc71;
}

.performance-dashboard .case-result i {
    margin-left: 5px;
    color: #27ae60;
}

.performance-dashboard .case-link {
    display: inline-block;
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    padding: 8px 15px;
    background-color: #eaf4fd;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.performance-dashboard .case-link:hover {
    background-color: #dbe9f7;
}

.performance-dashboard .case-link i {
    margin-right: 5px;
    font-size: 0.9em;
}


/* Responsiveness adjustments for 3xN layout */
@media (max-width: 1023px) and (min-width: 768px) {
    .performance-dashboard .featured-case-card {
        width: calc(50% - 12.5px); 
    }
}

@media (max-width: 767px) {
    .performance-dashboard .featured-case-card {
        width: 100%;
        min-height: auto;
    }
}