#goat-ai-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#goat-ai-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

#goat-ai-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

#goat-ai-fab img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#goat-ai-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom right;
}

#goat-ai-chat.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.goat-ai-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goat-ai-title {
    color: white;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#goat-ai-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#goat-ai-close:hover {
    color: white;
}

#goat-ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar customization */
#goat-ai-messages::-webkit-scrollbar {
    width: 6px;
}
#goat-ai-messages::-webkit-scrollbar-track {
    background: transparent;
}
#goat-ai-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.goat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.user-message {
    background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    color: #1a1a1a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

.ai-message {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.ai-message strong {
    color: #f1c40f;
}

.goat-ai-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

#goat-ai-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#goat-ai-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

#goat-ai-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#goat-ai-send {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#goat-ai-send:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive - Hide on mobile to prevent virtual keyboard scrolling issues */
@media (max-width: 768px) {
    #goat-ai-container {
        display: none !important;
    }
}
