/* EuroStaffs AI Assistant - Premium Design System */
:root {
    --primary-gradient: linear-gradient(135deg, #0061ff 0%, #6033ff 100%);
    --bot-msg-bg: #ffffff;
    --user-msg-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: #f8faff;
    --text-main: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.ai-chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating Bubble */
.ai-chatbot-bubble {
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(96, 51, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(96, 51, 255, 0.4);
}

/* Glassmorphism Window */
.ai-chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 580px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: windowAppear 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes windowAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium Header */
.ai-chatbot-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    position: relative;
}

.ai-status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #00ff88;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.ai-chatbot-header span {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
    color: #ffffff;
}

/* Message Area */
.ai-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.ai-chatbot-messages::-webkit-scrollbar {
    display: none;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: msgEntry 0.3s ease-out;
}

@keyframes msgEntry {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: var(--bot-msg-bg);
    color: var(--text-main);
    align-self: flex-start;
    border-radius: 0px 20px 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message.user {
    background: var(--user-msg-bg);
    color: white;
    align-self: flex-end;
    border-radius: 20px 20px 0px 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
}

/* Suggestions Tiers */
.ai-chatbot-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
}

.dynamic-suggestions {
    flex-direction: column;
    background: rgba(240, 247, 255, 0.5);
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.persistent-tools {
    overflow-x: auto;
    background: white;
    padding: 12px 15px;
    border-bottom: 3px solid #0061ff;
    scrollbar-width: none;
}

.ai-faq-pill {
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-faq-pill:hover {
    background: #edf2f7;
    border-color: #0061ff;
    color: #0061ff;
    transform: translateX(5px);
}

.ai-tool-btn {
    white-space: nowrap;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 51, 255, 0.3);
}

/* Modern Input */
.ai-chatbot-input {
    padding: 15px 20px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

.ai-chatbot-input input {
    flex: 1;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
}

.ai-chatbot-input input:focus {
    border-color: #6033ff;
    box-shadow: 0 0 0 3px rgba(96, 51, 255, 0.1);
}

/* Typing Indicator */
.ai-chatbot-typing {
    padding: 5px 20px;
    display: flex;
    gap: 4px;
}

.ai-chatbot-typing .dot {
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    border-radius: 50%;
    animation: typingPulse 1s infinite alternate;
}

.ai-chatbot-typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chatbot-typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}