/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures full-height layout */
}

header {
    background-color: #044416;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.dashboard-title {
    font-size: 1.5rem;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:active {
    background-color: #004d1a;
}

.container {
    background-color: #e6ffe6;
    border: 1px solid #007700;
    border-radius: 8px;
    padding: 20px; /* Reduced padding */
    max-width: 500px; /* Restrict width */
    max-height: 400px; /* Added maximum height to reduce its size */
    width: 100%; /* Responsive width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto; /* Centers horizontally */
    flex: 1; /* Ensures the container grows to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    margin-top: auto; /* Ensures footer sticks to the bottom */
}

/* Heading */
.container h1 {
    margin-bottom: 20px;
    color: #004d00;
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
    text-align: left; /* Align labels to the left */
}

/* Label styling */
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Input and select styling */
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #007700;
    border-radius: 4px;
    background-color: #fff;
    color: #004d00;
    transition: border-color 0.3s;
}

.form-group select:focus {
    border-color: #004d00;
    outline: none;
}

/* Button styling */
button {
    background-color: #004d00;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #007700;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .container {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}
