/* --- NEW: Add this to the top of your CSS --- */
/* This makes the gradient background fill the whole page */
html {
    height: 100%;
}

/* --- Global Styles --- */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

/* --- NEW: Body style specific to the login page --- */
body.login-page-body {
    background-color: #f4f7f6;
    /* Subtle gradient background */
    background-image: linear-gradient(to right top, #f4f7f6, #e9ecef);
    display: flex;
    justify-content: center;
    align-items: center;
}
/*
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
*/
.container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- Form & Login Page Specific --- */
/*.login-container {
    max-width: 450px;
    margin-top: 50px;
}
*/
/* --- REPLACE your old '.login-container' style with this --- */
.login-container {
    max-width: 450px;
    margin: 0; /* Margin is now handled by flexbox */
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    /* This shadow makes it "pop" */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid #004d99; /* School's blue color */
}

h1 {
    text-align: center;
    color: #004d99;
    border-bottom: 2px solid #004d99;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h2 {
    color: #cc0000;
    margin-top: 20px;
    border-left: 5px solid #cc0000;
    padding-left: 10px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-field {
    flex: 1 1 calc(33.333% - 15px);
    min-width: 250px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #004d99;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 77, 153, 0.5);
}

.full-width { flex: 1 1 100%; }

.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background-color: #004d99;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover { background-color: #003366; }

.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

/* --- Messages & Dashboard --- */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}
.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }
.info { background-color: #d1ecf1; color: #0c5460; }

.status-box {
    padding: 20px;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
}
.status-Pending { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-Approved { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-Rejected { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Admin Table --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.admin-table th {
    background-color: #f2f2f2;
    color: #333;
}
.admin-table tr:nth-child(even) { background-color: #f9f9f9; }
.admin-table tr:hover { background-color: #f1f1f1; }
.admin-table a { color: #004d99; text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

/* --- NEW: Style for the logo --- */
.login-logo {
    margin-bottom: 20px;
}
.login-logo img {
    max-width: 480px; /* Adjust as needed */
    height: auto;
}

/* --- NEW: Tweak headings for the login card --- */
.login-container h1 {
    /* Use the school's red color */
    color: #cc0000;
    font-size: 1.8em;
    margin-bottom: 5px;
    border-bottom: none;
    padding-bottom: 0;
}
.login-container h2 {
    color: #004d99; /* School's blue color */
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 25px;
    border: none;
    padding: 0;
}

/* --- NEW: Style for the link back to the main site --- */
.back-to-school-link {
    margin-top: 30px;
    font-size: 0.9em;
}
.back-to-school-link a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.back-to-school-link a:hover {
    color: #004d99;
    text-decoration: underline;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
}

/* --- Modal Popup Styles --- */
.modal-overlay {
    position: fixed; /* Sit on top of the page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark-ish background */
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px; /* Wide, for reading text */
    max-height: 80vh; /* 80% of the viewport height */
    overflow-y: auto; /* Add scrollbar if content is too long */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    text-decoration: none;
}
.modal-close:hover {
    color: #333;
}

/* Class to hide the modal */
.hidden {
    display: none;
}

/* Styles for the agreement content inside the modal */
.modal-content h2 {
    color: #cc0000;
    border-left: none;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.modal-content ul {
    padding-left: 20px;
}
.modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* --- These styles can remain as they are --- */
/* .btn, .message, .form-group, etc. */
