html, body {
    height: 100%;
}

/* BODY FLEX LAYOUT */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background: #eef2f7;
    margin: 0;
}

/* MAIN CONTENT AREA */
.container {
    flex: 1;   /* THIS pushes footer down */
    width: 55%;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* NAVBAR */
.navbar {
    background: #1e2a38;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
}

/* LEFT LOGO */
.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
}

/* CENTER TITLE */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: #1e2a38;
    color: #fff;
    text-align: center;
    padding: 12px;
}



/* HEADINGS */
h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* STUDENT INFO */
p {
    margin: 6px 0;
    color: #444;
}

/* FORM */
label {
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
}

/* BUTTON */
button {
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #219150, #27ae60);
}

#subjects {
    margin-top: 15px;
}

/* SUBJECT ROW */
.subject-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* force left alignment */
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    gap: 12px;
}

/* CHECKBOX */
.subject-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;   /* remove weird spacing */
}

/* SUBJECT TEXT */
.subject-title {
    font-size: 15px;
    color: #333;
    text-align: left;
    flex: 1;   /* takes remaining space */
}
