/* AI Chat Button Styles */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.ai-chat-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.ai-chat-button img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ai-chat-text {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.ai-chat-button:hover .ai-chat-text {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Chat Window Styles */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 640px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    display: none;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ai-chat-window.visible {
    transform: scale(1);
    opacity: 1;
}

/* Mobile responsiveness for chat window */
@media (max-width: 480px) {
    .ai-chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.ai-chat-window-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: white;
    overflow: hidden;
}

.ai-chat-window-iframe.loaded {
    opacity: 1;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    z-index: 1;
    border-radius: 8px;
}

.iframe-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Close button */
.ai-chat-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: opacity 0.3s;
}

.ai-chat-close-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

.ai-chat-close-btn::before,
.ai-chat-close-btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #333;
}

.ai-chat-close-btn::before {
    transform: rotate(45deg);
}

.ai-chat-close-btn::after {
    transform: rotate(-45deg);
}

/* Dragging styles */
.ai-chat-window.dragging {
    transition: none;
    cursor: move;
} 