/* FICAC Floating AI Assistant Chatbot Styles */
.chatbot-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B1B3D 0%, #162B57 100%);
    border: 2px solid #D4AF37;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(11, 27, 61, 0.4);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-launcher:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, #162B57 0%, #0B1B3D 100%);
}

.chatbot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: #D4AF37;
    color: #0B1B3D;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Chat Popup Container */
.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #0B1B3D 0%, #162B57 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #D4AF37;
}

.chatbot-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.1rem;
}

.chatbot-title-group h4 {
    font-family: 'Cinzel', serif, sans-serif;
    font-size: 0.98rem;
    margin: 0;
    color: #ffffff;
}

.chatbot-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.chatbot-close-btn:hover {
    color: #D4AF37;
}

/* Body / Message List */
.chatbot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 86%;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble {
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
    background: #ffffff;
    color: #0B1B3D;
    border: 1px solid #E2E8F0;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, #0B1B3D 0%, #162B57 100%);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.msg-bubble a {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: underline;
}

/* Quick Action Suggestion Chips */
.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.chip-btn {
    background: #ffffff;
    border: 1px solid #D4AF37;
    color: #0B1B3D;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover {
    background: #0B1B3D;
    color: #D4AF37;
}

/* Footer Input Bar */
.chatbot-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
}

.chat-input-form {
    display: flex;
    gap: 8px;
}

.chat-input-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #CBD5E1;
    font-size: 0.88rem;
    outline: none;
}

.chat-input-form input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0B1B3D;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #D4AF37;
    color: #0B1B3D;
}

@media (max-width: 480px) {
    .chatbot-launcher {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .chatbot-window {
        right: 12px;
        left: 12px;
        bottom: 78px;
        width: auto;
        max-width: calc(100vw - 24px);
        height: min(500px, calc(100vh - 95px));
        border-radius: 14px;
    }

    .chatbot-header {
        padding: 12px 16px;
    }

    .chatbot-body {
        padding: 14px;
    }

    .chat-msg .msg-bubble {
        max-width: 92%;
        font-size: 0.86rem;
    }
}
