/* Chatbot Styles */
:root {
    --chat-primary: #0a1d37;
    --chat-accent: #007bff;
    --chat-bg: #ffffff;
    --chat-bot-bubble: #f0f2f5;
    --chat-user-bubble: #0a1d37;
    --chat-text-muted: #65676b;
}

.chatbot-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--chat-accent);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 24px;
}

.chatbot-launcher:hover {
    transform: scale(1.1);
}

.chatbot-launcher .chat-icon,
.chatbot-launcher .close-icon {
    position: absolute;
    transition: opacity 0.3s;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 130px);
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    background: var(--chat-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    position: relative;
    z-index: 10002;
    padding: 10px;
}

#chatbot-close:hover {
    opacity: 1;
}

.chat-icon, .close-icon {
    pointer-events: none;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fdfdfd;
}

.message {
    max-width: 85%;
    display: flex;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.bot .bubble {
    background: var(--chat-bot-bubble);
    color: #1c1e21;
    border-bottom-left-radius: 4px;
}

.user .bubble {
    background: var(--chat-accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    padding: 16px;
    border-top: 1px solid #eee;
    background: white;
}

.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt-btn {
    background: white;
    border: 1px solid var(--chat-accent);
    color: var(--chat-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.opt-btn:hover {
    background: var(--chat-accent);
    color: white;
}

.input-wrap {
    display: flex;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 4px 8px 4px 16px;
    align-items: center;
}

.input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    outline: none;
}

.input-wrap button {
    background: var(--chat-accent);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-btn {
    width: 100%;
    padding: 12px !important;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .chatbot-container {
        right: 15px;
        bottom: 20px;
        width: calc(100% - 30px);
        height: min(600px, calc(100vh - 40px));
        max-height: none;
        border-radius: 12px;
    }
    
    .chatbot-header {
        padding: 12px 15px;
    }

    #chatbot-close {
        padding: 5px 10px;
        font-size: 24px;
    }

    .chatbot-launcher {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
