/* AI Chatbot Widget Styles */
#ai-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 100px);
    background: rgba(5, 5, 8, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 136, 255, 0.15);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#ai-chatbot-widget.show {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

/* ... (shimmer omitted) ... */

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    position: relative;
    color: #000;
}

/* ... (pseudo omitted) ... */

.chatbot-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.chatbot-info p {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    font-weight: 500;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chatbot-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

/* Chat Messages Area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, rgba(0, 136, 255, 0.02), transparent);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: messageSlideIn 0.4s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.message.user .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot .message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #e0e0e0;
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 5px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 0;
}

.typing-indicator .message-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.typing-dots {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 5px;
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: typingDots 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* Quick Suggestions */
.quick-suggestions {
    padding: 0 15px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: rgba(0, 136, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Chat Input Area */
.chatbot-input-area {
    padding: 12px 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.chatbot-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.1);
}

.chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chatbot-send {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
}

.welcome-message i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-message h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.welcome-message p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Service Links in Messages */
.message-content a {
    color: var(--secondary-accent);
    text-decoration: underline;
    font-weight: 600;
}

.message-content a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ai-chatbot-widget {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-header {
        border-radius: 0;
    }

    .message-content {
        max-width: 85%;
    }
}