body {
    background-color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
    color: aliceblue;
    margin: 0;
    padding: 0;
}
header {
    padding: 20px;
    background-color: rgb(116, 33, 55);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo a {
    font-family: "Audiowide", sans-serif;
    font-size: 26px;
    text-decoration: none;
    color: aliceblue;
    transition: all 0.3s ease;
}
.logo a:hover { 
    color: rgb(231, 124, 147); 
    text-shadow: 0 0 8px rgba(231, 124, 147, 0.5);
    transform: scale(1.05);
}

.header ul, .topright ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header ul li, .topright ul li {
    margin: 0 10px;
}
.header ul li a, .topright ul li a {
    color: aliceblue;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}
.header ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: rgb(231, 124, 147);
    transition: width 0.3s ease;
}
.header ul li a:hover {
    color: rgb(231, 124, 147);
}
.header ul li a:hover::after {
    width: 100%;
}

.topright button {
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    background-color: beige;
    color: black;
    border: 2px solid white;
    transition: all 0.3s ease;
    transform: translateY(0);
}
.topright button:hover {
    background-color: rgb(231, 124, 147);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.topright button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
h1 {
    font-size: 36px;
    text-align: center;
    padding: 175px;
    background-image: url('../images/IMG_2246.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.container {
    text-align: center;
    padding: 20px;
}
.container button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    background-color: rgb(116, 33, 55);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
.container button:hover {
    background-color: rgb(231, 124, 147);
}
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 350px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h2 {
    color: rgb(116, 33, 55);
    margin-bottom: 20px;
    font-size: 24px;
}
.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border 0.3s;
}
.modal-content input:focus, .modal-content textarea:focus {
    border-color: rgb(116, 33, 55);
    outline: none;
}
.modal-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: rgb(116, 33, 55);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background 0.3s;
}
.modal-content button[type="submit"]:hover {
    background-color: rgb(231, 124, 147);
}
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: rgb(116, 33, 55);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    padding: 0;
    line-height: 1;
}
.close:hover {
    background-color: rgb(231, 124, 147);
}

footer {
    padding: 10px 0; /* Modify padding, remove left and right padding */
    background-color: rgb(116, 33, 55);
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: aliceblue;
}

/* Modify footer content layout */
.footer-content {
    display: flex;
    justify-content: space-between; /* Align to both ends */
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Left-align copyright info */
.footer-content p {
    margin: 0;
    text-align: left;
}

/* Right-align navigation links */
.footer-nav {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* Right align */
}

.footer-nav a {
    color: aliceblue;
    text-decoration: none;
    font-size: 14px; /* Reduce font size */
    transition: color 0.3s;
    white-space: nowrap; /* Prevent text wrapping */
}

.footer-nav a:hover {
    color: rgb(231, 124, 147);
}

/* Add notification style */
.notification {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}
.notification.error {
    background-color: #ffdddd;
    border: 1px solid #f44336;
    color: #f44336;
}
.notification.success {
    background-color: #ddffdd;
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

/* Modify user menu styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgb(116, 33, 55); /* Modify to match the navigation bar color */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-menu-content a {
    color: #fff; /* White text */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.user-menu-content a:hover {
    background-color: rgb(140, 45, 70); /* Lighter red, coordinated with the main color */
    color: #fff;
    padding-left: 20px;
}

.user-menu:hover .user-menu-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu button {
    background-color: rgb(116, 33, 55);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-menu button:hover {
    background-color: rgb(231, 124, 147);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add success message styles */
.success-message {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 20px;
    margin: 0;
    border-radius: 5px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s;
}

.success-message h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 20px;
}

.success-message button {
    background-color: white;
    color: rgb(76, 175, 80);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.success-message button:hover {
    background-color: #f1f1f1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Improve form result message styles */
.form-result {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.form-result.error {
    background-color: #ffdddd;
    border: 1px solid #f44336;
    color: #d32f2f; /* Dark red text, better contrast */
}

.form-result.success {
    background-color: #dff2d8;
    border: 1px solid #4CAF50;
    color: #2e7d32; /* Dark green text, better contrast */
}

/* Processing state styles */
.processing-message {
    color: #555;
    font-weight: bold;
    padding: 5px;
}

/* Modify hero section to fill the entire middle area, remove text part */
.hero-section {
    width: 100%;
    height: calc(100vh - 80px - 40px); /* Subtract the height of the header and footer */
    background-image: url('../images/IMG_2246.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Navigation menu Log Maintenance styles */
.header ul li a[onclick] {
    cursor: pointer;
    transition: color 0.3s ease;
}

.header ul li a[onclick]:hover {
    color: rgb(231, 124, 147);
}

/* Reserve dedicated styles for modal */
.modal-register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #4A4A4A;
}

.modal-register-link a {
    color: #1976D2;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 4px;
    transition: all 0.2s ease;
}

.modal-register-link a:hover {
    color: #2196F3;
    text-decoration: underline;
}
