/* Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e63d75, #a546d9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.chatbot-toggle .chat-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Close button override: push down only this */
.chatbot-close {
    transform: translateY(3px);
    height: 24px;
    width: 24px;
}

/* Modal */
.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 370px;
    height: 550px;
    background-color: #121212;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* Header */
.chatbot-header {
    background: #1f1f1f;
    padding: 12px 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    line-height: 1;
    border-bottom: 1px solid #333;
    min-height: 48px;
    box-sizing: border-box;
}

.chatbot-header h5 {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1;
}

.chatbot-header button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    /* ❌ Removed height: 4px; */
}

/* Message Area */
.chatbot-messages {
    padding: 20px 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Message Bubbles */
.chatbot-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #e63d75, #a546d9);
    color: #fff;
    border-bottom-right-radius: 0;
}

.chatbot-message.bot {
    align-self: flex-start;
    background-color: #2a2a2a;
    color: #eee;
    border-bottom-left-radius: 0;
}

/* Input Box */
.chatbot-input {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    background: #1c1c1c;
    align-items: center;
    box-sizing: border-box;
}

.chatbot-input * {
    margin: 0;
    box-sizing: border-box;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 25px;
    border: none;
    background: #2d2d2d;
    color: white;
    font-size: 14px;
    outline: none;
    height: 40px;
}

.chatbot-input button {
    background: linear-gradient(135deg, #e63d75, #a546d9);
    color: white;
    border: none;
    padding: 0;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

/* Universal SVG Icon Style */
.chat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 768px) {
    .chatbot-modal {
        width: 90%;
        height: 70%;
        right: 5%;
        bottom: 100px;
        border-radius: 16px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .chatbot-toggle .chat-icon {
        width: 26px;
        height: 26px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .chatbot-modal {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .chatbot-toggle {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .chatbot-toggle .chat-icon {
        width: 22px;
        height: 22px;
        margin-top: 8px;
    }
}

.chatbot-close:hover {
    transform: translateY(3px) scale(1.1);
    transition: transform 0.2s ease;
}