/* Chat Button */
#chat-button {
    position: fixed;
    bottom: 32px;               /* More modern separation from edge */
    right: 32px;
    min-width: 110px;           /* Ensures space for icon + text */
    height: 56px;
    background: #32b9cd;        /* Turquoise shade */
    border-radius: 34px;        /* Pill/oval shape */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;                  /* Spacing between icon and text */
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: box-shadow 0.2s, background 0.3s;
    color: #122741;             /* Dark navy for text + icon */
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    border: none;
    padding: 0 22px;
}

#chat-button:hover {
    background: #289dae;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

#chat-button svg {
    fill: #122741;
    width: 26px;
    height: 26px;
}

/* Chat Window - unchanged, but keeping for full file */
#chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-window.hidden {
    display: none;
}

/* Chat Header */
.chat-header {
    background: #32b9cd;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

/* Messages */
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #32b9cd;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.bot {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Typing Indicator */
#typing-indicator {
    padding: 10px 15px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #32b9cd;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input */
.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#chat-input:focus {
    border-color: #32b9cd;
}

#chat-send {
    background: #32b9cd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#chat-send:hover {
    background: #289dae;
}

.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
        bottom: 20px;
        right: 20px;
    }
}
