/* General Reset */
body, h1, h2, p, ul, ol, li, form, input, textarea, select, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout Styling */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

/* Header Styling */
.main-header {
    background-color: #004080;
    color: white;
    padding: 20px 15px;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    max-width: 100px;
    height: auto;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.nav-button {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nav-button.green { background: #28a745; }
.nav-button.purple { background: #6f42c1; }
.nav-button.blue { background: #007bff; }
.nav-button.orange { background: #fd7e14; }
.nav-button.pink { background: #e83e8c; }
.nav-button.login { background: #17a2b8; }
.nav-button.admin { background: #343a40; }

.nav-button:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-container {
    background: #ffffff;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Scrollable Form */
.scrollable-form {
    max-height: 500px;
    overflow-y: auto;
}

/* Form Styling */
fieldset {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
}

legend {
    font-weight: bold;
    font-size: 1.1rem;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* Footer Styling */
footer {
    margin-top: 3rem; /* Adds space below the main content */
    background: #004080;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}
