/* Dashboard Specific Styles */

.section-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.section-title-row h3 { margin: 0; }
.report-date-badge {
    background: #3498db;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Row highlights */
tr.row-present { background-color: #f0fdf4; }
tr.row-absent  { background-color: #fff5f5; }
tr.row-late    { background-color: #fffbea; }
tr.row-present:hover { background-color: #dcfce7 !important; }
tr.row-absent:hover  { background-color: #fee2e2 !important; }
tr.row-late:hover    { background-color: #fef9c3 !important; }

/* Summary cards */
.summary-card.total   { background: linear-gradient(135deg, #eaf4ff, #cce3ff); }
.summary-card.present { background: linear-gradient(135deg, #e9fdf0, #b6f5cc); }
.summary-card.late    { background: linear-gradient(135deg, #fffde7, #ffe57f); }
.summary-card.absent  { background: linear-gradient(135deg, #fff1f0, #ffd6d0); }
.summary-card.rate    { background: linear-gradient(135deg, #f3e5f5, #ce93d8); }

.summary-card .value.late { color: #d68910; }


.filters-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 13px;
}

#customRange {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#customRange input {
    flex: 1;
    min-width: 120px;
}

.attendance-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attendance-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 8px;
}

.summary-card .label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

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

.summary-card .value.present {
    color: #27ae60;
}

.summary-card .value.absent {
    color: #e74c3c;
}

.attendance-table {
    margin: 20px 0;
}

.attendance-table thead {
    background-color: #34495e;
    color: white;
}

.attendance-table th,
.attendance-table td {
    padding: 12px;
    text-align: left;
}

.attendance-table tbody tr:hover {
    background-color: #f8f9fa;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .btn {
    padding: 8px 12px;
    font-size: 12px;
}

.pagination .btn.active {
    background-color: #3498db;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    #customRange {
        flex-direction: column;
    }

    #customRange input {
        min-width: 100%;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .attendance-table {
        font-size: 12px;
    }

    .attendance-table th,
    .attendance-table td {
        padding: 8px;
    }
}
