/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4fff4; /* Light green background */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
body.loading {
    cursor: wait;
}
.container {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #d2f5d2; /* Light green border */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Headings */
h1, h2, h3 {
    color: #2a7f2a; /* Green color for headings */
    margin: 0 0 20px;
    text-align: left;
}
p {
    margin: 0 0 15px;
    line-height: 1.3;
    color: #555;
}
a {
    color: #2a7f2a; /* Green for links */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* Forms */
form {
    display: flex;
    flex-direction: column;
}
input[type="text"],
input[type="password"] {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #d2f5d2; /* Light green border */
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #d2f5d2; /* Light green border */
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
/* Buttons */
button {
    background-color: #2a7f2a; /* Green button */
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
button:hover {
    background-color: #1d5f1d; /* Darker green on hover */
}
button:disabled {
    background-color: #b0e5b0; /* Lighter green for disabled buttons */
    cursor: not-allowed;
}
/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}
table th, table td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #d2f5d2; /* Light green border */
}
table td input[type="text"] {
    height: 100%; /* Match the cell height */
    box-sizing: border-box; /* Ensure proper spacing inside the input */
    margin: 0; /* Remove any margin from inputs */
    display: block; /* Ensure consistent behavior */
    padding: 8px; /* Add some padding for aesthetics */
}
table td textarea {
    height: 100%; /* Match the cell height */
    box-sizing: border-box; /* Ensure proper spacing inside the textarea */
    margin: 0; /* Remove any margin from the textarea */
    display: inline-block; /* Ensure consistent behavior */
    padding: 8px; /* Add some padding for aesthetics */
}
table td select {
    display: block; /* Ensure the select occupies a consistent block layout */
    margin: 0; /* Center the select horizontally */
    box-sizing: border-box; /* Ensure proper spacing inside the select */
}
table th {
    background-color: #2a7f2a; /* Green for table headers */
    color: #fff;
    font-weight: bold;
}
table tr:nth-child(even) {
    background-color: #f4fff4; /* Light green row background */
}
table tr:hover {
    background-color: #e6ffe6; /* Hover effect with a lighter green */
}
/* Select */
select {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #d2f5d2; /* Light green border */
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff; /* White background */
    color: #333; /* Text color */
    appearance: none; /* Remove default dropdown arrow (optional) */
    -webkit-appearance: none; /* Remove arrow in WebKit browsers */
    -moz-appearance: none; /* Remove arrow in Firefox */
}
select:focus {
    border-color: #2a7f2a; /* Highlight border with green on focus */
    outline: none; /* Remove outline */
    box-shadow: 0 0 4px rgba(42, 127, 42, 0.5); /* Add subtle green shadow */
}
select:hover {
    background-color: #f9fff9; /* Slightly lighter green background on hover */
    cursor: pointer;
}
select option:disabled {
    color: #999; /* Placeholder-like text color */
    font-style: italic; /* Optional: italicize for a placeholder effect */
}
select option {
    color: #333; /* Match regular text color */
}
[id] {
  scroll-margin-top: 150px;
}
/* Error messages */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}
/* Main container */
.main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: flex-start; /* Align horizontally to the left */
    height: 100vh; /* Full viewport height */
    padding: 30px 20px 20px; /* Add padding for spacing */
    margin: 0; /* Ensure no additional margin */
    box-sizing: border-box; /* Include padding in dimensions */
}
/* Media query for smaller screens */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 5px;
    }
    h1, h2, h3 {
        font-size: 1.3em;
    }
    input[type="text"],
    input[type="password"],
    button {
        font-size: 12px;
        padding: 5px;
    }    
    select {
        font-size: 12px;
        padding: 5px;
    }
}
