/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form#studentForm button[type="submit"] {
    display: none; /* Initially hide both submit buttons */
}

/* Container and Table Styling */
.container {
    width: 95%;
    margin: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Pagination Styling */
.pagination-controls {
    margin-top: 20px;
    text-align: center;
}

.pagination-btn {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Button Styling in Table Actions */
.edit, .delete {
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    color: white;
}

.edit {
    background-color: #28a745; /* Green */
}

.delete {
    background-color: #dc3545; /* Red */
}

.edit:hover {
    background-color: #218838;
}

.delete:hover {
    background-color: #c82333;
}