/* General Styling */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #333;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make sure the body takes full viewport height */
}

/* Ensure the container does not take the entire screen height, but has a max height */
.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allow the container to expand and take available space */
}

/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    color: #007BFF;
}

.header p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Form Styling */
.form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #007BFF;
    outline: none;
}

/* Button Styling */
.button-group {
    display: flex;
    gap: 10px;
}

.button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #e7e7e7;
}

.button.primary {
    background-color: #007BFF;
    color: white;
}

.button.primary:hover {
    background-color: #0056b3;
}

/* Results Styling */
.results {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .button-group {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

.semesters-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.semester-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.semester-row .form-group {
    flex: 1;
}

.semester-row .form-group input {
    width: 100%;
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #555;
    margin-top: auto; /* Push the footer to the bottom */
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #007BFF;
    text-decoration: none;
}

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