/* AI Assistant Widget Styles */
#ai-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.ai-btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-text);
    border: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-medium);
    position: relative;
    z-index: 2;
}

.ai-btn-floating:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}

.ai-btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.ai-window.hidden {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
    pointer-events: none;
}

.ai-header {
    padding: 15px 20px;
    background: rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-primary);
}

#ai-assistant-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

#ai-assistant-close:hover {
    color: var(--accent-primary);
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 2px;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-message.user {
    align-self: flex-end;
    background: var(--gradient-text);
    color: var(--bg-color);
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.typing-animation {
    display: inline-block;
    width: 2px;
    height: 15px;
    background: var(--accent-primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.ai-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-suggestions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.ai-suggestions::-webkit-scrollbar {
    height: 3px;
}

.suggestion-btn {
    white-space: nowrap;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-btn:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--accent-primary);
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    transition: border-color 0.3s;
}

.ai-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

#ai-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 0.9rem;
    outline: none;
}

#ai-send-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

#ai-send-btn:hover {
    transform: scale(1.1) translateX(3px);
}

/* Scrollbar Style for Chat */
.ai-chat-body::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.2);
    border-radius: 10px;
}