/* Chat Interface Styles */
.chat-container {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 400px;
    /* Fixed height for scroll */
    margin: 20px 0;
    overflow: hidden;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.chat-message.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    color: white;
    border-bottom-right-radius: 2px;
}

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

/* NSFW/Bold Context Highlighting */
.chat-message.ai-message strong {
    color: #ff0055;
    /* Hot pink for emphasis */
    font-weight: 700;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#chat-input-text {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: none;
    padding: 10px;
    outline: none;
    max-height: 100px;
}

.chat-send-btn {
    background: transparent;
    border: none;
    color: #00f260;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}