/* Floating Button */
#ai-assist-float-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ai-assist-primary, #7C4DFF);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 99999;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#ai-assist-float-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Chat Container */
#ai-assist-container {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    z-index: 99998;
    overflow: hidden;
}

/* Messages */
#ai-assist-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.ai-assist-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: var(--ai-assist-primary, #7C4DFF);
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
    padding-left: 12px;
    margin: 8px 0;
}

/* Input Area */
#ai-assist-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#ai-assist-send {
    margin-left: 8px;
    padding: 8px 15px;
    background: var(--ai-assist-primary, #7C4DFF);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#ai-assist-typing {
    display: none;
    padding: 5px 15px;
    color: #666;
    font-style: italic;
}

/* Admin Test Results */
#ai-assist-test-result .notice {
    padding: 10px;
    margin: 5px 0;
    border-left: 4px solid;
}

#ai-assist-test-result .notice-success {
    background: #f0f9eb;
    border-color: #67c23a;
}

#ai-assist-test-result .notice-error {
    background: #ffebee;
    border-color: #c62828;
}