/* ====== STUDENT TABLE STYLING ====== */
.table-container {
    width: 100%;
    overflow-x: auto;   /* horizontal scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Table */
table {
    width: 100%;
    min-width: 500px; /* prevent columns from collapsing too much */
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    font-family: "Segoe UI", sans-serif;
}

/* Table Header */
table thead {
    background-color: #1e88e5;
    color: white;
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

/* Table Body Rows */
table td {
    padding: 6px 8px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Zebra stripes */
table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect */
table tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}

/* Inputs inside table */
table input {
    width: 70%;
    border-radius: 6px;
    padding: 4px;
    font-size: 13px;
    border: 1px solid #ccc;
}

/* Buttons */
table button {
    padding: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #1e88e5;
    color: white;
    margin: 2px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    table {
        min-width: 390px; /* adjust for tablet */
    }
    table th, table td {
        font-size: 12px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 350px; /* adjust for small phones */
    }
    table th, table td {
        font-size: 9px;
        padding: 3px;
    }
}
