body {
    font-family: "Poppins", Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    margin: 0;
}


form {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 35px;
    width: 520px;
    margin: 9% auto;
}


.form-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 10px;
    width: 700px;
}


label {
    margin-bottom: 5px;

    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    width: 60%;
}

input:focus {
    outline: none;
    border-color: #2196f3;
}


input[type="submit"] {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 5px;
    transition: background 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #1976d2;
}


#CancelBtn {
    background-color: #f44336;
}

#CancelBtn:hover {
    background-color: #d32f2f;
}


.conatiner {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 40px;
    text-align: center;
    margin: 10% auto;
    width: 750px;
}

.conatiner h1 {
    color: #2e7d32;
    font-size: 22px;
    margin-bottom: 15px;
}

.conatiner #finalGradeTxt {
    background-color: #b4ca1065;
    font-weight: 700;
    height: 50px;
    text-align: center;
    padding-top: 15px;
    font-size: 20px;
    margin: 8px 0;
}

.conatiner #informTxt {
    color: red;
    font-size: 20px;
    margin: 8px 0;
    font-style: italic;
    font-weight: 600;
}


.conatiner #finalGradeTxt #finalGrade {
    font-weight: 800;
    color: red;
}




.navbar {
    background-color: #ffffff;
    padding: 25px 20px;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    color: #0d47a1;
    gap: 16px;
}

.logo {
    width: 70px;
    height: auto;
    display: block;
    border-radius: 6px;
}

.navbar-divider {
    border: 0;
    height: 2px;
    background-color: #2196f3;
    margin: 0;
    opacity: 0.7;
}


.footer {
    background-color: #0d47a1;
    color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 97%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer a {
    color: #ffca28;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer p {
    margin: 4px 0;
    font-size: 14px;
}


@media (max-width: 1024px) {
    form, .conatiner {
        width: 90%;
        margin: 6% auto;
        padding: 20px;
    }

    .form-group {
        grid-template-columns: 1fr;
        width: 100%;
    }

    label {
        font-size: 16px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"] {
        width: 100%;
        font-size: 16px;
    }

    input[type="submit"] {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer {
        width: 100%;
        position: relative;
    }
}


@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    form, .conatiner {
        width: 95%;
        margin: 10% auto;
        padding: 20px 15px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    label {
        font-size: 15px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"] {
        font-size: 14px;
        width: 100%;
    }

    input[type="submit"],
    #CancelBtn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .navbar-container {
        flex-direction: column;
        align-items: center;
    }

    .brand {
        font-size: 18px;
        justify-content: center;
    }

    .logo {
        width: 50px;
    }

    .footer-content {
        text-align: center;
        font-size: 13px;
    }

    .footer p {
        font-size: 12px;
    }
}


@media (max-width: 480px) {
    form, .conatiner {
        width: 100%;
        margin: 15% auto;
        padding: 15px;
    }

    label {
        font-size: 14px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="submit"] {
        font-size: 13px;
        padding: 10px;
    }

    .navbar-container {
        gap: 8px;
    }

    .brand {
        font-size: 16px;
    }

    .footer {
        padding: 20px 10px;
    }
}
