#neuron-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 9999;
    overflow: hidden;
}

.neuron-chat-header {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.neuron-chat-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.neuron-chat-modes {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.neuron-mode {
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.neuron-mode:hover {
    background: #e8e8e8;
}

.neuron-mode.active {
    background: #007bff;
    color: #fff;
}

.neuron-chat-body {
    height: 380px;
    display: flex;
    flex-direction: column;
}

.neuron-chat-body.collapsed {
    display: none;
}

.neuron-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

.neuron-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.5;
}

.neuron-msg-user {
    background: #007bff;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.neuron-msg-ai {
    background: #e9ecef;
    color: #333;
    border-bottom-left-radius: 4px;
}

.neuron-msg-ai img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.neuron-chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    gap: 8px;
}

.neuron-chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.neuron-chat-input button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.neuron-chat-input button:hover {
    background: #0056b3;
}

.typing {
    color: #666;
    font-style: italic;
}