/* EduDash - Main Styles */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #34495e;
    font-weight: 600;
}

/* Filter panel */
.filter-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter-item label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* KPI cards */
.kpi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.kpi-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 15px 20px;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.kpi-card .kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.kpi-card .kpi-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* DataTable styles */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    font-size: 13px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    background-color: #f8f9fa !important;
    font-weight: 600 !important;
}

/* Tabs horizontal scroll on mobile */
.dash-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Insights block */
.insights-block {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: 20px;
    line-height: 1.6;
}

.insights-block h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .dashboard-card {
        padding: 12px;
    }
    
    .kpi-card {
        min-width: 100%;
    }
}
