/* AI Agent Styles */
:root {
    --ai-primary: #00e5ff;
    --ai-bg: #121212;
    --ai-surface: #1e1e1e;
    --ai-text: #ffffff;
    --ai-bubble-size: 60px;
}

.ai-agent-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Outfit', sans-serif;
}

/* Floating Button */
.ai-agent-bubble {
    width: var(--ai-bubble-size);
    height: var(--ai-bubble-size);
    background: var(--ai-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
    border: none;
}

.ai-agent-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.ai-agent-bubble svg {
    width: 30px;
    height: 30px;
    fill: #000;
}

/* Chat Window */
.ai-agent-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--ai-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-agent-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.ai-agent-window:not(.active) {
    transform: scale(0);
}

/* Window Header */
.ai-agent-header {
    background: var(--ai-surface);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-agent-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ai-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-agent-header .close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.ai-agent-header .close-btn:hover {
    color: #ff4444;
}

/* Chat Body */
.ai-agent-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--ai-primary) var(--ai-surface);
}

.ai-message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-message.bot {
    align-self: flex-start;
    background: var(--ai-surface);
    color: var(--ai-text);
    border-bottom-left-radius: 2px;
}

.ai-message.user {
    align-self: flex-end;
    background: var(--ai-primary);
    color: #000;
    border-bottom-right-radius: 2px;
}

/* Chat Input */
.ai-agent-input-container {
    padding: 15px;
    background: var(--ai-surface);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 10px;
}

.ai-agent-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.ai-agent-input:focus {
    border-color: var(--ai-primary);
}

.ai-agent-send-btn {
    background: var(--ai-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-agent-send-btn:hover {
    transform: scale(1.1);
}

.ai-agent-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #000;
}

/* Typing Indicator */
.typing {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .ai-agent-window {
        width: calc(100vw - 60px);
        height: 60vh;
        right: 0;
    }
}
