/* Style the dashboard with a clean, professional layout and readable cards. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #263238;
}

header {
    background: #26384a;
    color: white;
    padding: 30px 40px;
}

header h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

header p {
    margin: 0;
    font-size: 16px;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.card p {
    margin: 0;
    color: #607d8b;
}

.dashboard-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-section h2 {
    margin-top: 0;
}

.placeholder {
    margin-top: 25px;
    padding: 40px;
    text-align: center;
    background: #f4f6f8;
    border-radius: 8px;
    color: #607d8b;
}

footer {
    text-align: center;
    padding: 25px;
    color: #607d8b;
    font-size: 13px;
}

@media (max-width: 800px) {
    .summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .summary {
        grid-template-columns: 1fr;
    }
}
/* Style the student table for readability and easy scanning. */

.table-container {
    margin-top: 25px;
    overflow-x: auto;
}
.table-container {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
}
/* Main student table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Table cells */
th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Table header */
th {
    background: #eef1f4;
    font-weight: 600;
    color: #333;
}



/* Row hover */
tr:hover {
    background: #f8f9fa;
}

/* Style the student search field. */

.filters {
    margin-bottom: 15px;
}

#studentSearch {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
}

#studentSearch:focus {
    outline: none;
    border-color: #607d8b;
}
/* Display support priority as compact, easy-to-scan badges. */

.priority-low,
.priority-moderate,
.priority-high {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    vertical-align: middle;
}

.priority-low {
    color: #2e7d32;
    background: #e8f5e9;
}

.priority-moderate {
    color: #b26a00;
    background: #fff3cd;
}

.priority-high {
    color: #c62828;
    background: #ffebee;
}
/* Centre priority badges vertically inside their table cells. */
td:has(.priority-low),
td:has(.priority-moderate),
td:has(.priority-high) {
    vertical-align: middle;
}
/* Style the clickable Student ID and the selected-student detail panel. */

.student-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #1565c0;
    cursor: pointer;
    font-weight: 600;
}

.student-link:hover {
    text-decoration: underline;
}

.student-details {
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #607d8b;
    border-radius: 6px;
}

.student-details h3 {
    margin-top: 0;
}

.student-details h4 {
    margin-bottom: 8px;
}

.student-details ul {
    padding-left: 20px;
}

.student-details li {
    margin-bottom: 6px;
}

/* Display the selected student's support profile as a centered modal. */

.student-details {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}

.student-modal {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.close-modal:hover {
    color: #000;
}
