/* 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;
    margin: 0; /* Removes unwanted margin that can cause spacing issues */
}

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;
}

main {
    padding: 30px;
    flex: 1; /* Pushes the footer to the bottom by taking up available space */
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.container {
    width: 50%;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px 0px #0000001a;
    border-radius: 5px;
}

h2 {
    text-align: center;
    color: #004d00;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin: 10px 0 5px;
}

select, input[type="radio"], button {
    padding: 10px;
    margin-bottom: 15px;
}

button {
    background-color: #004d00;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
}

button:hover {
    background-color: #003300;
}

/* Base alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
}

/* Danger alert styling */
.alert-danger {
    color: #721c24; /* Dark red text color */
    background-color: #f8d7da; /* Light red background color */
    border-color: #f5c6cb; /* Light red border color */
}

/* Optional: Add an icon to the alert */
.alert-danger::before {
    content: "⚠"; /* Warning icon */
    margin-right: 10px;
    font-size: 18px;
}

/* Optional: Add a close button to the alert */
.alert .close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: inherit;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    button {
        font-size: 16px;
    }
}

/* Base alert styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
}

/* Danger alert styling */
.alert-danger {
    color: #721c24; /* Dark red text color */
    background-color: #f8d7da; /* Light red background color */
    border-color: #f5c6cb; /* Light red border color */
}

/* Optional: Add an icon to the alert */
.alert-danger::before {
    content: "⚠"; /* Warning icon */
    margin-right: 10px;
    font-size: 18px;
}

/* Optional: Add a close button to the alert */
.alert .close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: inherit;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}