:root {
    --user-bg: #007bff;
    --bot-bg: #f1f1f1;
    --bubble-radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url("https://dev.eplustech.eu/bg_login.jpg") no-repeat center center/cover;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 96%;
    max-width: 900px;
    height: 95vh;
    overflow: hidden;
}

#chatbox {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 40px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#thumbs-up:hover,
#thumbs-down:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.message-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
}

.submit-feedback-btn {
    padding: 0.7rem 1rem;
    background-color: rgb(23, 184, 168);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

.submit-feedback-btn:hover {
    background-color: rgb(20, 160, 146);
}

.feedback-prompt {
    margin-bottom: 8px;
    color: #00A693;
    font-size: 15px;
    line-height: 1.5;
}

.bot-message em {
    color: #666;
    font-size: 0.9em;
}


.bot-message strong {
    color: #00A693;
    font-weight: 600;
}

.bot-message div {
    line-height: 1.4;
}

.user-message,
.bot-message {
    position: relative;
    max-width: 75%;
    padding: 12px 16px 22px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    text-align: justify;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    max-height: none;
    overflow: visible;
}

.user-message {
    background-color: #007AFF; /* iOS Blue */
    color: #fff;
    align-self: flex-end;
    margin: 6px 10px 6px auto;
    border-radius: 16px 16px 4px 16px; /* Bottom-right corner less rounded */
    padding: 10px 16px;
    max-width: 75%;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    display: inline-block;
}

.bot-message {
    background-color: #dedee2; /* Light gray, typical of iMessage */
    color: #000;
    align-self: flex-start;
    margin: 6px auto 6px 10px;
    border-radius: 16px 16px 16px 4px; /* Bottom-left corner less rounded */
    padding: 10px 16px;
    max-width: 75%;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    display: inline-block;
}

.timestamp {
    font-size: 0.9em;
    color: #424242;
    font-style: italic;
    white-space: nowrap;
    pointer-events: none;
}

.message-container.user .timestamp {
    text-align: right;
    margin-right: 12px;
}

.message-wrapper {
    align-items: center;
    gap: 8px;
    max-width: 80%;
    min-width: 0;
}
.booking-prompt {
    margin-bottom: 10px;
    font-size: 16px;
}

.booking-btn {
    background-color: rgb(23, 184, 168);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 6px;
    transition: background-color 0.3s;
}

.booking-btn:hover {
    background-color: rgb(20, 160, 146);
}

.language-select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    max-width: 120px;
    background-color: white;
    cursor: pointer;
}

.language-select:disabled {
    opacity: 0.7;
    background-color: #f5f5f5;
}

.language-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, .25);
}

.room-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.room-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.room-image:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .room-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .room-image {
        height: 180px;
    }
}

.message-reaction {
    position: absolute;
    left: calc(100% - 40px); /* Positions from left edge of parent */
    bottom: -10px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid #e5e5ea;
    z-index: 10;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.suggested-questions-container {
    margin: 15px 0 10px;
}

.questions-message {
    margin-top: 10px;
}

.questions-message:first-child {
    border-top: none;
    padding-top: 0;
}

.suggested-questions-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.suggested-question-chip {
    display: inline-block;
    padding: 10px 16px;
    background-color: #e8f2ff;
    border-radius: 20px;
    margin: 0 8px 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0066cc;
    transition: all 0.2s;
    border: 1px solid #c2d9ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.suggested-question-chip:hover {
    background-color: #d6e7ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: #0052a3;
}

.disclaimer-text {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.message-container.bot .timestamp {
    text-align: left;
    margin-left: 12px;
}

.feedback-buttons {
    margin-top: 4px;
}

.thumb-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
}

.thumb-button.selected {
    opacity: 1;
    color: #28a745;
}

.bot-icon,
.user-icon {
    width: 30px;
    height: 30px;
    background-size: cover;
    border-radius: 50%;
    justify-content: flex-end;
    flex-shrink: 0;
}

.bot-icon {
    width: 38px;
    height: 38px;
    margin-right: 8px;
    border-radius: 50%;
    background-image: url('images/girl.png');
    background-size: cover;
    background-position: left;
    flex-shrink: 0;
}

.regenerate-tags {
    padding: 0.15rem 0.3rem;
    margin-left: 0.5rem;
    line-height: 1;
    vertical-align: middle;
    font-size: 0.9em;
    border-radius: 50%;
    width: 1.8em;
    height: 1.8em;
}

.regenerate-tags:hover {
    background-color: #f8f9fa;
}

.message-container.user {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 10px 0;
}

.user-info-form .form-group {
    margin-bottom: 1rem;
}

.user-info-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.user-info-form input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.user-info-form button {
    padding: 0.7rem 1rem;
    background-color: rgb(23, 184, 168);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.user-icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    background-image: url('images/icon.jpg');
    background-size: cover;
    border-radius: 50%;
}

button:focus {
    outline: none;
}

.email-style {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

.email-style a {
    color: #007bff;
    text-decoration: none;
}

.email-style strong {
    font-weight: bold;
}

#chat-footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    background: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin: 10px 0;
    max-width: 75%;
}

.typing-dots {
    display: inline-block;
    width: 40px;
    height: 10px;
    position: relative;
    white-space: nowrap;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 1px;
    background: #007bff;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 15px;
    margin-right: 10px;
}