/* Chatbox Container */
#chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    height: 420px;
    overflow: hidden;
    z-index: 9999;
}

/* Header */
#chat-header {
    background: #1e1e1e;
    color: white;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-left {
    display: flex;
    align-items: center;
}

#chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #4CAF50;
}

.chat-title {
    font-weight: bold;
    font-size: 14px;
}

.chat-subtitle {
    font-size: 12px;
    color: #bfbfbf;
}

.chat-header-close {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: 0.2s;
}
.chat-header-close:hover {
    color: red;
}

/* Messages Area */
#messages {
    height: 290px;
    overflow-y: auto;
    padding: 10px;
}

/* Message Bubbles */
.message {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 14px;
    max-width: 85%;
    line-height: 1.3;
    word-wrap: break-word;
}

.message.user {
    background: #DCF8C6;
    float: right;
    text-align: right;
}

.message.bot {
    background: #F1F0F0;
    float: left;
    text-align: left;
}

/* Quick Reply Buttons */
.quick-replies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.quick-btn {
    background: #007bff;
    padding: 6px 8px;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.quick-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Input Area */
#input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#userInput {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}

/* Launcher Button */
#chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #007BFF 30%, #00f7ff 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 123, 255, 0.7);
    animation: glow 1.5s infinite alternate;
    z-index: 10000;
}

#chat-launcher img {
    width: 35px;
    height: 35px;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(0, 180, 255, 0.6); }
    to { box-shadow: 0 0 22px rgba(0, 236, 255, 0.9); }
}
