/* Style for the subject table under body.subjects */
body.subjects .subject-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

body.subjects .subject-table th,
body.subjects .subject-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

body.subjects .subject-table th {
    background-color: #d0e2ff; /* light blue */
    color: #000;               /* text color */
    font-weight: bold;         /* optional for emphasis */
}

body.subjects .subject-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

body.subjects .subject-table tr:hover {
    background-color: #f1f1f1;
}

body.subjects .subject-table button {
    padding: 5px 10px;
    border: none;
    color: white;
    background-color: #007bff;
    cursor: pointer;
    border-radius: 4px;
}

body.subjects .subject-table form .delete {
    background-color: red;
}

body.subjects .subject-table form .delete:hover {
    background-color: #6f0505;
}

body.subjects .subject-table button:hover {
    background-color: #0056b3;
}

body.subjects .subject-table button:active {
    background-color: #003d7a;
}

body.subjects {
    padding-top: 40px;
}

body.subjects .subjects-table {
    margin: 10px;
}

body.subjects h1,
body.subjects h2 {
    text-align: center;
}


body.subjects .subjects-container .notification {
     padding: 15px;
     margin-bottom: 20px;
     border-radius: 5px;
     font-size: 16px;
     width: 100%;
     text-align: center;
 }
body.subjects .subjects-container .notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb; 
}
body.subjects .subjects-container .notification.error {
    background-color: #f8d7da;
    color: #721c24; 
    border: 1px solid #f5c6cb;
}


/* Sticky headers */
.table-scroll {
    max-height: 500px;
    overflow-y: auto;
}

.table-scroll thead th {
    position: sticky; 
    top: 0;
    background: #fff;
    z-index: 5;
}
