body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.login-container, .form-container {
    max-width: 600px; /* Set a maximum width for forms */
    margin: 50px auto; /* Center the form horizontally with top/bottom spacing */
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2, h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds consistent spacing between inputs */
    padding: 10px; /* Adds padding inside the form */
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea, select {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Ensures form controls do not exceed container width */
    box-sizing: border-box; /* Prevents padding from breaking layout */
}

input:focus, textarea:focus, select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea {
    resize: vertical; /* Allow vertical resizing only */
}

button {
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto; /* Prevents button from taking 100% width */
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.success-message {
    color: green;
    background-color: #eaffea;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid green;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    color: red;
    background-color: #ffeaea;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid red;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 600px) {
    .login-container, .form-container {
        width: 90%;
        margin: 50px auto;
    }
}

.dashboard-container {
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.dashboard-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: center; /* Center the entire menu */
}

.dashboard-menu li {
    display: inline-flex; /* Allows flexbox for individual menu items */
    flex-direction: column; /* Stacks the text vertically for wrapping */
    align-items: center; /* Centers text horizontally within the item */
    justify-content: center; /* Centers text vertically within the item */
    padding: 8px 15px;
    border-radius: 4px;
    white-space: normal; /* Enables text wrapping */
    text-align: center; /* Ensures wrapped text is centered */
    background-color: transparent;
}

.dashboard-menu a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    text-align: center; /* Centers the text within the link */
}

.dashboard-menu a:hover {
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f4f4f9;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.action-link {
    color: #007BFF;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

.radio-group {
    display: flex; /* Aligns Yes and No horizontally */
    gap: 10px; /* Adds spacing between Yes and No */
    align-items: center; /* Ensures radio buttons align vertically with text */
}

.radio-group label {
    display: flex;
    align-items: center; /* Centers text and button vertically */
    gap: 5px; /* Adds spacing between the button and text */
}

h1, h2, h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}



