body {
    font-family: Arial, sans-serif;
    background-color: #e6f7e6; /* A very light, calming green */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top */
    min-height: 100vh;
    margin: 20px 0; /* Add some margin for better spacing */
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px; /* Slightly more rounded corners */
    box-shadow: 0 4px 15px rgba(0, 150, 0, 0.1); /* Greenish shadow */
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    border: 1px solid #d4edda; /* Subtle green border */
}

h1, h2, h3 {
    text-align: center;
    color: #28a745; /* A vibrant, trustworthy green */
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.input-section input[type="text"],
.input-section select {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #c8e6c9; /* Light green border for inputs */
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9fdf9; /* Very light green background for inputs */
}

.subject-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.subject-item label {
    flex: 2; /* Take more space */
    margin-bottom: 0;
    min-width: 150px; /* Ensure label has enough space */
}

.input-group {
    display: flex;
    flex: 3; /* Take remaining space */
    gap: 10px; /* Space between select and input */
    align-items: center;
}

.input-group select,
.input-group input[type="number"] {
    flex: 1; /* Distribute space equally between select and input */
    margin-bottom: 0; /* Remove margin from individual elements */
    width: auto; /* Override width for flex item */
}


.optional-subject-checkbox {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.optional-subject-checkbox input[type="checkbox"] {
    margin-right: 5px;
    width: auto; /* Reset width */
}

#results {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #c3e6cb; /* Greenish border */
    border-radius: 8px;
    background-color: #f0fff0; /* Lightest green for results */
}

#results h2, #results h3 {
    color: #28a745; /* Consistent green */
}

#results p {
    font-size: 1.1em;
    margin-bottom: 8px;
}

#results ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

#results ul li {
    background-color: #e6f7e6; /* Greenish background for list items */
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

#gpaStatus {
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.pass {
    color: #155724; /* Darker green for pass text */
    background-color: #d4edda; /* Light green for pass background */
    border-color: #c3e6cb;
}

.fail {
    color: #dc3545;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.hidden {
    display: none !important;
}

button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #28a745; /* Green button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Data Privacy Note */
.data-privacy-note {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background-color: #fff3cd; /* Light yellow background for attention */
    border: 1px solid #ffeeba; /* Yellow border */
    border-radius: 8px;
    color: #856404; /* Dark yellow text */
    font-size: 0.9em;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .subject-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .subject-item label {
        width: 100%;
        margin-bottom: 8px;
    }

    .input-group {
        flex-direction: column;
        width: 100%;
    }

    .input-group select,
    .input-group input[type="number"] {
        width: 100%;
        margin-bottom: 8px; /* Add margin between stacked inputs */
    }

    .optional-subject-checkbox {
        margin-left: 0;
        margin-top: 5px;
    }
}