/* Basic Styling for OOF Application */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
    background-color: #f0f2f5; /* Light gray background for the page */
    color: #343a40; /* Base text color */
}

.content-wrapper {
    padding: 30px; /* Padding inside the white box */
    max-width: 800px;
    margin: 40px auto; /* Center the white box with margin */
    background-color: #ffffff; /* White background for content */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* Shadow for the white box */
}

h1 {
    color: #007bff; /* Brighter blue */
    border-bottom: 1px solid #e9ecef; /* Thinner, lighter border */
    padding-bottom: 15px; /* More space */
    margin-bottom: 25px; /* More space */
}

.message, .error {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.message {
    background-color: #e7f5ff; /* Lighter blue background */
    border-color: #b3d7ff; /* Softer blue border */
    color: #004085; /* Darker blue text */
}

.error {
    background-color: #fff3f3; /* Lighter red background */
    border-color: #ffbdbd; /* Softer red border */
    color: #7f1d1d; /* Darker red text */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600; /* Slightly less bold */
    color: #495057;
}

input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px; /* Slightly more padding */
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px; /* Softer corners */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Added transition */
}

input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #86b7fe; /* Updated focus color */
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Standard Bootstrap focus shadow */
}


textarea {
    min-height: 120px;
    resize: vertical; /* Allow vertical resizing */
}

button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.15s ease-in-out;
}

button[type="submit"]:hover,
button[type="submit"]:focus { /* Added focus state */
    background-color: #0056b3;
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.3); /* Subtle shadow on hover/focus */
}

.logout-link {
    float: right;
    margin-left: 15px;
    color: #007bff;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

form p small {
    color: #6c757d;
    font-size: 0.875em;
}

/* Clearfix for floated elements like logout link */
form::after {
    content: "";
    clear: both;
    display: table;
}