*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    display: block; /* Ensures centering with text-align */
    margin: 0 auto;
}

h1, h2 {
    color: #333;
	text-align: center;
	margin: 5px;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* This is key: Stack children vertically */
    align-items: center;    /* This is key: Center children horizontally */
    padding: 20px;
}


input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"], 
input[type="number"], 
textarea, select{ 
    /* width: calc(100% - 20px); */
	witdth: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

label {
    display: block; /* Makes the label take its own line */
    margin-bottom: 5px; /* Space between the label and its input field */
    color: #555;
    text-align: left; /* Align labels to the left */
}


button {
    width: 100%;
    padding: 10px;
	margin-bottom: 15px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}


/* */
.form-container, .search-container, .update-form,
#createForm, #searchForm, #updateForm, #loginForm 
{
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: calc(100 -10)%;
    max-width: 450px;
    margin: 10px; 
	display: flex; 
    flex-direction: column;  
	align-items: stretch;
}
 
/* More specific for the last button if that's generally the last element */
form button:last-of-type {
    margin-bottom: 0 !important;
}

                
button:hover {
    filter: brightness(1.1);
}

.hidden {
    display: none;
}

.image-preview2-container, .image-preview-container {
	display: none;
	text-align: center;
	margin-top: 15px;
	margin-bottom: 15px;
	border: 1px solid #eee;
	padding: 10px;
	border-radius: 4px;
	background-color: #f9f9f9;  
}

.image-preview-container img,
.image-preview2-container img {
    max-width: 150px; /* Make sure the image doesn't overflow its container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper centering within text-align: center parent */
    margin: 0 auto; /* Center the image itself */
}

.notification-section {
    background-color: #e7f3e7;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%; /* Responsive width */
    max-width: 800px; /* Max width to prevent it from getting too wide */
    margin: 20px auto; /* Centers horizontally when parent is column flex and aligned */
}

.notification-section.hidden {
    display: none;
}

.notification-section h3 {
    margin-top: 0;
    color: #0d4a1b;
}

.notification-section p {
    margin-bottom: 10px;
}

.notification-data {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    text-align: left;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px solid #ccc;
}

/* adjustment by Afolabi*/
.format-hint {
    font-size: 0.75em; /* Smaller text for the hint */
    color: #666; /* Softer color */
    margin-top: -2px;
	margin-bottom: 5px;	 /*  Space between hint and button */
    text-align: left;
    width: 100%;
	padding-top: - 10px;
	padding-bottom: 10px;
}

/* adjustment by Afolabi end */

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }
}