/* Space AI Chat Widget Styles */
#space-ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.space-ai-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-ai-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 5px #28a745;
}

.space-ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
    max-height: 350px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.ai {
    background: #e9ecef;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.space-ai-input-area {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    background: white;
}

#space-ai-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

#space-ai-send {
    background: #007bff;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thinking Indicator */
.thinking {
    font-style: italic;
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.dot-flashing {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #007bff;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: .5s;
    margin-left: 5px;
}

@keyframes dot-flashing {
    0% {
        background-color: #007bff;
    }

    50%,
    100% {
        background-color: rgba(0, 123, 255, 0.2);
    }
}

.close-space-ai {
    cursor: pointer;
    font-size: 1.2rem;
}
