body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-top: 60px;
    background-image: url('opening.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blue-bar {
    display: flex;
    align-items: center;
    background-color: #03162D;
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 50px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding:0px 0px;
}

/* Container for blue bar contents */
#blue-bar-container {
    width: 90%;
    max-width: 900px;
    height: 50px;
    margin: 0 auto; /* Center the container horizontally */
    position: relative;
    display: flex;
    justify-content: space-between; /* Distribute space between title and menu icon */
    align-items: center; /* Vertically center content */
}

#logo-title {
    margin: 0;
    font-size: 24px;
    color: white; /* Adjust as needed */
}

/* Menu icon styling */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 6px;
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 4px;
    position: absolute; /* Ensures it stays positioned relative to its container */
    right: 0; /* Aligns it to the right edge of the container */
    top: 0px; /* Adjust top position */
}

/* Show the dropdown menu when needed */
.menu-icon.active + .menu-dropdown {
    display: block;
}

#menu-icon:hover {
    cursor: pointer;
    background-color: #75b8ff;
}



/* Dropdown menu styling */
.menu-dropdown {
    position: absolute;
    top: 40px; /* Positions the dropdown directly below the menu icon */
    right: 0; /* Aligns it with the right edge of the menu icon */
    width: 200px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #03162D;
    padding: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    display: none; /* Initially hidden */
}

.menu-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-dropdown li {
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    color: rgb(0,0,0);
}

.menu-dropdown li:hover {
    background-color: #75b8ff;
}

.container {
    width: 90%;
    max-width: 900px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 8px;
    padding: 5px;
    margin: 0 auto; /* Correctly centers the container horizontally */
    margin-top: 20px; /* Adds space at the top */
    position: relative;
    overflow: hidden;
    display: flex; /* Ensures content inside can use flexbox if needed */
    flex-direction: column; /* Ensures child elements stack vertically */
    justify-content: center; /* Vertically center content if needed */
    align-items: center; /* Horizontally center content */
}


/* Navigation and Back Button Positioning */
.navigation-container {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #007BFF;
    margin-bottom: 10px;
}

.navigation-container .back-button {
    font-size: 24px;
    margin-right: 15px;
    background: none;
    border: none;
    cursor: pointer;
}

.navigation-map {
    font-size: 16px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.navigation-map a {
    color: #007BFF;
    text-decoration: none;
    margin-right: 5px;
}

.navigation-map a:hover {
    text-decoration: underline;
}

.blue-line {
    height: 2px;
    background-color: #007BFF;
    margin-bottom: 20px;
}

h2, h3 {
    margin-bottom: 20px;
}

#initial-page {
    position: relative;
    height: 100vh;
    width: 90%;
    max-width: 900px;
    margin-top: 25px;
    background-attachment: fixed; /* Parallax effect */
    background-size: cover;
    background-position: center;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: flex-end; /* Ensures content floats upward as the page scrolls */
    align-items: center;
    /*padding: 20px;  Adds consistent padding */
    box-sizing: border-box; /* Ensure padding is included in the element's total width and height */
}


#initial-page-text {
    text-align: center;
    background: rgba(255, 255, 255, 0.95); /* Background for better readability */
    padding: 10vh;
    margin-bottom: 50px; /* Space at the bottom */
    transform: translateY(-20px); /* Float the text slightly upward */
    box-sizing: border-box;
}


/* Additional styling for the buttons if needed */
#initial-page-text .button {
    margin: 10px;
}
.guest-list {
    padding-left: 15px;
    text-align: left;
}

#register-your-rental {
    padding: 10px;
    border: .5px solid #03162D;
    width: 90%;
    box-shadow: 0 4px 8px #DFD7C4;
    background: white;
}

.list-item {
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.list-item:hover {
    background: #f1f1f1;
}

/* Account settings property cards */
.property-item {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.guest-list ul {
    list-style: none;
    padding-left: 0;
}

.guest-list li {
    margin-bottom: 4px;
}

.edit-button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 14px;
}

.edit-button:hover {
    background-color: #0056b3;
}


/* Additional styles for the chat interface */
.chat-header {
    display: flex;
    align-items: center;
    background-color: #03162D;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
}

.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
}

.close-button {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.chat-box {
    padding: 20px;
    background: #fff;
    height: 50vh;
    overflow-y: scroll;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
}

/* Common styles for chat bubbles */
.chat-bubble {
    position: relative;
    max-width: 60%;
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

/* Guest messages (aligned to the left) */
.chat-bubble.guest-bubble {
    background-color: #f0f0f0;
    align-self: flex-start;
    text-align: left;
}

/* Bot messages (aligned to the right) */
.chat-bubble.bot-bubble {
    background-color: #d1e7dd;
    align-self: flex-end;
    text-align: left;
}

/* Container for the chat messages */
#chat {
    overflow-y: auto;
    flex-grow: 1;
}

/* Guest message styles */
.guest-bubble {
    background-color: #f0f0f0; /* Light grey for guest messages */
    color: #000;
    align-self: flex-start;
    margin-right: auto; /* Align guest messages to the left */
}

/* Host message styles (if any) */
.host-bubble {
    background-color: #ffe0b2;
    color: #000;
    align-self: flex-end;
    margin-left: auto; /* Align host messages to the right */
    margin-right: 10px;
}

/* Preserve orange color when host messages are marked as sent */
.host-bubble.sent {
    background-color: #ffe0b2;
}

.message {
    margin-bottom: 20px;
    max-width: 60%;
    padding: 10px;
    border-radius: 8px;
}

.message-bubble {
    position: relative;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

/* Bot message styles */
.bot-bubble {
    background-color: #d1e7dd; /* Light green for bot messages */
    color: #155724;
    align-self: flex-end;
    margin-left: auto; /* Align bot messages to the right */
    margin-right: 10px;
}

/* Bot message container */
.bot-message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align container content to the right */
    margin-bottom: 10px;
}

/* Bot message bubble */
.bot-message-bubble {
    background-color: #d1e7dd; /* Light green for bot messages */
    color: #155724; /* Darker green for text */
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    margin-right: 10px;
    display: inline-block;
    align-self: flex-end; /* Align bubble to the right */
}

.bot-message {
    background-color: #dff0f7;
    align-self: flex-start;
}

.bot-message-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 5px; /* Add some space between buttons */
}


.bot-message-actions,
.bot-message-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-bubble.editing {
    background-color: #e0e0e0; /* Light grey */
}

.bot-message-edit-container {
    position: relative;
    margin-top: 10px;
    padding: 10px;
}

.bot-message-edit-actions {
    margin-top: 5px;
    text-align: right;
}

.btn-save, .btn-cancel {
    margin-left: 5px;
}

.bot-message-actions button,
.bot-message-edit-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-send, .btn-edit, .btn-save, .btn-cancel {
    margin-right: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-send {
    background-color: #28a745;
    color: white;
}

.btn-edit, .btn-save, .btn-cancel {
    background-color: #dc3545;
    color: white;
}

.bot-message-edit-container textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
/* Style for the edit interface */
#edit-interface {
    width: 100%;
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
}

#edit-interface h3 {
    margin-top: 0;
}

.edit-interface h4 {
    margin-top: 0;
}

#edit-interface textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.edit-actions {
    margin-top: 10px;
    text-align: right;
}
.edit-interface {
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    width: 100%; /* Ensure the edit interface spans the width of the message bubble */
}

.edit-interface h4 {
    margin-top: 0;
}

.edit-interface textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.edit-actions .btn-save,
.edit-actions .btn-send,
.edit-actions .btn-cancel {
    margin-left: 5px;
}

/* Grey out the chat interface when editing */
#chat-interface.editing {
    pointer-events: none;
    opacity: 0.5;
}

/* Bubble color when editing */
.chat-bubble.editing {
    background-color: #e0e0e0; /* Light grey */
    max-width: 60%;
}

/* Bubble color when sent */
.chat-bubble.sent {
    background-color: #d4edda; /* Light green */
}

.bot-message-edit-actions {
    display: flex;
    gap: 10px;
}

.btn-save {
    background-color: #2196F3;
    color: white;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
}

.sent-info {
    text-align: right;
    font-style: italic;
    margin-top: 5px;
}

/* Container for message and time label */
.message-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the time label */
    width: 100%;
}

.message-time {
    font-size: 12px;
    text-align: center;
    margin: 5px 0;
    color: #888;
}


.time-label {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.input-area {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.send-button {
    background-color: #03162D;
    color: white;
    border: none;
    padding: 10px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.send-button:hover {
    background-color: #97ADCA;
}

.back-button {
    background: none;
    border: none;
    color: #03162D;
    font-size: 36px;
    margin-right: 10px;
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #03162D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

#logo-title a {
    text-decoration: none;
    color: inherit; /* Inherit the color from the parent */
}

#logo-title a:hover {
    text-decoration: underline; /* Optionally add an underline on hover */
}

.button:hover {
    background-color: #97ADCA;
}

.menu-dropdown button:hover {
    background-color: #f0f0f0;
}

.unread-indicator {
    color: green;
}

.editable {
    cursor: pointer;
    color: #007BFF;
    margin-left: 5px;
}

#guest-name, #guest-dates, #guest-phone {
    margin-bottom: 10px;
}

/* Registration Form Styling */
form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
}

/* Align action buttons within forms */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.form-group select,
.form-group textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.form-group input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}


/* Highlight the current guest */
.list-item.current-guest {
    border: 2px solid #007BFF;
}

/* Highlight guest currently staying */
.list-item.current-staying {
    background: #c7ffc7;
}

.list-item.upcoming {
    background: #fff9e6;
}

.upcoming-guest-label {
    font-weight: bold;
    color: #333;
}

.current-guest-label {
    font-weight: bold;
    color: #000;
}

#guest-central-title {
    text-align: center;
}

@media (max-width: 768px) {
    #menu-icon {
        right: 5px;
        top: 5px;
    }

    .menu-dropdown {
        width: 150px;
    }

    #initial-page-text {
        width: 90%;
    }
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.notification-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

