#alc-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#alc-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

#alc-chat-toggle:hover {
    transform: scale(1.05);
}

#alc-chat-box {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 70px;
    right: 0;
}

#alc-chat-header {
    padding: 16px;
    background: #007bff;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#alc-chat-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

#alc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#alc-chat-input-area {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

#alc-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#alc-chat-send {
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#alc-chat-send:hover {
    background: #0056b3;
}

.alc-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alc-bot-message {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.alc-user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.alc-human-message {
    background: #28a745;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    font-weight: 600;
}

.alc-typing {
    padding: 10px 14px;
    background: #f0f0f0;
    border-radius: 12px;
    align-self: flex-start;
    font-style: italic;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #alc-chat-box {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: 10px;
    }
}