/* Extracted chat styles from inline injection (stellie-chat-interface.js). */
.stellie-chat-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--background-card, #fff);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: "Comic Sans MS", cursive, sans-serif;
    z-index: 1500;
    border: 3px solid var(--primary-color, #6633ff);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.stellie-chat-container.hidden {
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}
.stellie-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stellie-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: stellieChatPulse 2s ease-in-out infinite;
}
.stellie-chat-title h3 {
    margin: 0;
    font-size: 1.1rem;
}
.stellie-status {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}
.stellie-chat-close {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}
.stellie-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--background-secondary, linear-gradient(135deg, #f8f9ff 0%, #fff0f8 100%));
}
.stellie-message,
.user-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: messageSlideIn 0.4s ease-out;
}
.user-message {
    flex-direction: row-reverse;
}
.stellie-avatar-small,
.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.stellie-avatar-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.user-avatar-small {
    background: linear-gradient(135deg, #2ed573 0%, #17c0eb 100%);
}
.stellie-message-content,
.user-message-content {
    background: var(--background-card, #fff);
    padding: 12px;
    border-radius: 15px;
    border: 2px solid var(--primary-color, #6633ff);
    max-width: 250px;
    word-wrap: break-word;
    line-height: 1.4;
    color: var(--text-primary, #333);
}
.user-message-content {
    background: linear-gradient(135deg, #2ed573 0%, #17c0eb 100%);
    color: #fff;
    border-color: #2ed573;
}
.stellie-typing-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 15px;
}
.stellie-typing-indicator.hidden {
    display: none;
}
.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color, #6633ff);
    border-radius: 50%;
    animation: typingDots 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
.typing-text {
    color: var(--text-secondary, #666);
    font-style: italic;
    margin-left: 10px;
}
.stellie-chat-input {
    border-top: 2px solid var(--border-color, #eee);
    padding: 15px;
    background: var(--background-card, #fff);
}
.stellie-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
#stellie-chat-input {
    flex: 1;
    border: 2px solid var(--primary-color, #6633ff);
    border-radius: 15px;
    padding: 10px;
    resize: none;
    font-family: inherit;
    max-height: 80px;
    background: var(--background-card, #fff);
    color: var(--text-primary, #333);
}
#stellie-send-btn {
    background: linear-gradient(45deg, #6633ff, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.stellie-quick-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.stellie-quick-btn {
    background: rgba(102, 51, 255, 0.1);
    color: var(--primary-color, #6633ff);
    border: 1px solid var(--primary-color, #6633ff);
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.stellie-quick-btn:hover {
    background: var(--primary-color, #6633ff);
    color: #fff;
    transform: scale(1.05);
}
.stellie-setup-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-card, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--text-primary, #333);
}
.stellie-setup-panel.hidden {
    display: none;
}
.stellie-setup-content {
    text-align: center;
    padding: 20px;
    max-width: 300px;
}
@keyframes stellieChatPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes typingDots {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}
@media (max-width: 480px) {
    .stellie-chat-container {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        height: 400px;
    }
}
