﻿/* Chatbot container - mobile first */
#hotel-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatbot-window {
    display: none;
    width: 90vw;
    max-width: 350px;
    height: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
}

#chatbot-header {
    background: linear-gradient(to right, #1a73e8, #4285f4);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    #chatbot-header h3 {
        margin: 0;
        font-family: Arial, sans-serif;
        font-weight: 500;
        font-size: 1.1em;
    }

#audio-control {
    margin-right: 15px;
    cursor: pointer;
    font-size: 18px;
}

#chatbot-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #ffffff;
    height: 280px;
    font-family: Arial, sans-serif;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #f1f8ff;
    max-width: 80%;
    float: left;
    clear: both;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

    .message.bot-message {
        background-color: #f1f8ff;
    }

    .message.user-message {
        background: #007bff;
        color: #fff;
        margin-left: auto;
        float: right;
    }

    .message .sender {
        font-weight: bold;
        margin-bottom: 5px;
        color: #1a73e8;
    }

    .message.user-message .sender {
        color: #fff;
    }

#chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

#chatbot-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

#chatbot-send {
    background: linear-gradient(to right, #1a73e8, #4285f4);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

/* Original chatbox styles */
#chatbox {
    width: 90vw;
    max-width: 350px;
    height: 350px;
    border: 1px solid #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

#messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.msg {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.5em;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.user {
    background: #007bff;
    color: #fff;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.bot {
    background: #f1f1f1;
    color: #222;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

#send {
    background: #F2972A;
    color: white;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

    #send:hover {
        background: #d67e1f;
    }

a {
    color: #007bff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }


.minimize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: white;
}

.minimized-chat {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999999;
}

.chat-header {
    background: #F2972A; /* Bootstrap primary */
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#myChatBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #F2972A;
    border-radius: 30px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
}
/* Tablet and desktop styles */
@media (min-width: 768px) {
    #chatbot-window {
        width: 250px;
    }

    #chatbox {
        width: 300px;
    }

    #chatbot-header h3 {
        font-size: 1.2em;
    }
}

