#cavalier-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#cavalier-chatbot-toggle {
    width: 70px;
    height: 70px;
    background-color: transparent;
    background-image: url('../images/chatbot-icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

#cavalier-chatbot-toggle:hover {
    transform: scale(1.1);
}

#cavalier-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
}

#cavalier-chatbot-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chatbot-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    color: white;
    font-weight: 600;
}

#cavalier-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8f9fa;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background-color: #3498db;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    align-items: center;
}

#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: #3498db;
}

#chatbot-send {
    background: transparent;
    color: #2c3e50;
    border: none;
    width: 30px;
    height: 30px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}

#chatbot-send:hover {
    color: #3498db;
    transform: translateX(3px);
}

#chatbot-send svg {
    width: 24px;
    height: 24px;
}

#chatbot-send:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#cavalier-chatbot-container .chatbot-footer {
    font-size: 11px;
    text-align: center;
    padding: 10px;
    background-color: #ffffff !important;
    color: #95a5a6 !important;
    border-top: 1px solid #f1f1f1 !important;
}

.chatbot-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.chatbot-footer a:hover {
    text-decoration: underline;
}

.typing-indicator {
    display: inline-block;
    padding: 10px 14px;
    background-color: #e9ecef;
    border-radius: 15px;
    border-bottom-left-radius: 0;
    align-self: flex-start;
    font-style: italic;
    font-size: 13px;
    color: #7f8c8d;
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
@media (max-width: 450px) {
    #cavalier-chatbot-window {
        position: fixed;
        width: auto;
        left: 10px;
        right: 10px;
        bottom: 100px;
        max-width: none;
        height: 70vh;
    }
    
    #cavalier-chatbot-container {
        right: 10px;
        bottom: 20px;
    }
}
