body {
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Change: from height to min-height */
    background-color: rgba(0, 0, 0, 0.6);
    padding-bottom: 50px; /* Adjust according to the height of the menu bar */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

#confirmDialog {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 12%;
}



.login-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: auto; /* Added for vertical centering */
}


.login-form h2 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
}

.input-group {
    margin-bottom: 0px;
}

.input-group label {
    display: block;
    /* margin-top: 5px; */
    margin-bottom: 5px;
    color: #666;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 5%;
}

button {
    width: 100%;
    padding: 10px;
    margin-bottom: 5%;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

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

button[type="submit"] {
    background-color: #007bff;
    color: #ffffff;
}

button.cancel[type="submit"] {
    background-color: gray; /* Gray background */
    color: white; /* Text color to white */
    border: none; /* Remove border */
    padding: 10px 20px; /* Inner padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Cursor to pointer */
    font-size: 16px; /* Font size */
    text-decoration: none; /* Remove text underline */
    display: block; /* Display element as block level */
    width: 100%; /* Width */
    text-align: center; /* Center align text */
    /* margin-top: 10px; 上部の余白 */
}


button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Change the color of Delete button to gray */
button[name="delete"],
button[name="edit"],
button[name="return"] { /* Apply the same style to the Edit button */
    background-color: gray;
}

button[name="delete"]:hover,
button[name="edit"]:hover,
button[name="return"]:hover { /* Also apply to the hover state of the Edit button */
    background-color: gray;
}



/* Change the logout button color to gray */
form[action="php/logout.php"] button[type="submit"] {
    background-color: gray;
    cursor: not-allowed; /* Cursor indicating not clickable */
}

form[action="php/logout.php"] button[type="submit"]:hover {
    background-color: gray;
}


#menu-bar {
    z-index: 996;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgb(0, 0, 0);
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-around; /* Set equal spacing between items */
    align-items: center;
}

#menu-bar a {
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Arrange elements vertically */
    align-items: center; /* Center align */
    text-decoration: none; /* Remove text underline */
    color: white; /* Set text color to white */
    font-size: small;
}

#menu-bar img {
    height: 20px;
    width: auto;
    margin-bottom: 3px; /* Set margin between image and text */
}


#message {
    display: none; /* Initially hidden for control by JavaScript */
    position: fixed; /* Fixed to the top of the screen */
    top: 20px; /* Distance from the top edge */
    left: 50%; /* Position at 50% from the left edge */
    transform: translateX(-50%); /* Translate -50% on the X-axis to center */
    z-index: 1000; /* Display in front of other elements */
    background-color: #f8d7da; /* Background color (e.g., pale red for error messages) */
    color: #721c24; /* Text color */
    padding: 15px 30px; /* Inner padding */
    margin: 0 auto; /* Center align with auto margin */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #f5c6cb; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
    font-size: 16px; /* Font size */
    text-align: center; /* Center align text */
    width: 90%; /* Adjust the width for a larger display */
    max-width: none; /* Remove the maximum width limit */
}


#message.success {
    background-color: #d4edda; /* Green background */
    color: #155724; /* Green text */
    border-color: #c3e6cb;
    width: 60%;
}

#message.error {
    background-color: #f8d7da; /* Red background */
    color: #721c24; /* Red text */
    border-color: #f5c6cb;
    width: 60%;
}


#user-info {
    background-color: #f0f0f0; /* Background color */
    color: #333; /* Text color */
    padding: 10px; /* Inner padding */
    margin-bottom: 20px; /* Bottom margin */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center align text */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow */
}

.input-group input[type="password"] {
    margin-bottom: 20px; /* Add bottom margin to create space */
}

.logout-button {
    background-color: blue;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


button.RtnBtn {
    background-color: #808080; /* Gray background */
    color: white; /* Text color */
    padding: 10px 20px; /* Padding */
    border: none; /* No border */
    cursor: pointer; /* Cursor to pointer on hover */
    border-radius: 5px; /* Rounded corners */
}

button.RtnBtn:hover {
    background-color: #696969; /* Darken background color slightly on hover */
}



.cancel {
    background-color: gray; /* Gray background */
    color: white; /* Text color to white */
    border: none; /* Remove border */
    padding: 10px 20px; /* Inner padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Cursor to pointer */
    font-size: 16px; /* Font size */
    text-decoration: none; /* Remove text underline */
    display: block; /* Display element as block level */
    width: 88%; /* Set width to 100% */
    text-align: center; /* Center align text */
    margin-top: 10px; /* Top margin */
}


#cancelDelete {
    background-color: gray; /* Gray background */
    color: white; /* Text color to white */
    border: none; /* Remove border */
    padding: 10px 20px; /* Inner padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Cursor to pointer */
    font-size: 16px; /* Font size */
}


#confirmDelete {
    background-color: #007bff; /* Blue background color */
    color: white; /* Text color to white */
    border: none; /* Remove border */
    padding: 10px 20px; /* Inner padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Cursor to pointer */
    font-size: 16px; /* Font size */
}

.input-group textarea#contactMessage {
    width: 100%; /* Full width to align with other input fields */
    padding: 10px; /* Padding for better text visibility */
    border: 1px solid #ccc; /* Consistent border with other inputs */
    border-radius: 5px; /* Rounded corners to match other inputs */
    box-sizing: border-box; /* To include padding and border in the width */
    min-height: 100px; /* Minimum height to accommodate multi-line texts */
    resize: vertical; /* Allows resizing only vertically */
    margin-bottom: 15px; /* Slightly larger margin for better spacing */
    background-color: #fff; /* Ensures the textarea background is white */
    font-size: 16px; /* Matches the font size of other input fields */
    color: #333; /* Dark color for text to ensure readability */
}

/* Specific hover and focus styles for better user interaction */
.input-group textarea#contactMessage:hover,
.input-group textarea#contactMessage:focus {
    border-color: #4A90E2; /* Blue border on hover/focus for visibility */
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3); /* Soft glow effect */
}

.login-container h1 {
    text-align: center; /* Center aligns the text horizontally */
    color: #007bff; /* Sets a soothing blue color */
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    font-size: 24px; /* Sets a suitable font size for headings */
    font-weight: normal; /* Optional: normal weight for a modern look */
    margin-top: 20px; /* Adds space above the header */
    margin-bottom: 20px; /* Adds space below the header */
    padding: 10px; /* Adds padding around the text */
    background-color: #f8f9fa; /* A light background to make the header stand out */
    border-radius: 10px; /* Rounds the corners of the background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Adds a subtle shadow for depth */
}

.input-group textarea#contactMessage::placeholder {
    color: #aaa; /* Light gray color for placeholder text */
    font-family: 'Nunito', Arial, Tahoma, 'PingFang SC', sans-serif;
    font-size: 16px; /* Sets a readable font size */
    opacity: 1; /* Ensures the placeholder is fully visible */
}
