.beatsbot-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.beatsbot-widget * {
    box-sizing: border-box;
}

.beatsbot-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.beatsbot-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066CC 0%, #00A859 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

.beatsbot-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beatsbot-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.35);
}

.beatsbot-trigger:hover::before {
    opacity: 1;
}

.beatsbot-trigger.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.beatsbot-trigger-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.beatsbot-trigger.active .beatsbot-trigger-icon {
    transform: rotate(45deg);
}

.beatsbot-chat {
    position: absolute;
    width: 380px;
    height: 600px;
    background: #F8FAFB;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    right: 0;
    bottom: 80px;
}

.beatsbot-chat.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.beatsbot-header {
    background: linear-gradient(135deg, #0066CC 0%, #34495e 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.beatsbot-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.beatsbot-header-info {
    flex: 1;
}

.beatsbot-header-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.beatsbot-header-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.beatsbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.beatsbot-message {
    margin-bottom: 16px;
    animation: beatsbotMessageSlide 0.3s ease;
}

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

.beatsbot-message.bot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.beatsbot-message.user {
    display: flex;
    justify-content: flex-end;
}

.beatsbot-message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0066CC 0%, #00A859 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.beatsbot-message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 280px;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.beatsbot-message.user .beatsbot-message-content {
    background: linear-gradient(135deg, #0066CC 0%, #00A859 100%);
    color: white;
}

.beatsbot-input-area {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 16px;
}

.beatsbot-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.beatsbot-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
    min-height: 44px;
    max-height: 100px;
}

.beatsbot-input:focus {
    border-color: #0066CC;
}

.beatsbot-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0066CC 0%, #00A859 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.beatsbot-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.beatsbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.beatsbot-powered-by {
    text-align: center;
    padding: 8px;
    font-size: 10px;
    color: #6c757d;
    background: #f8f9fa;
}

@media (max-width: 480px) {
    .beatsbot-chat {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-width: 400px;
        max-height: 600px;
    }
    
    .beatsbot-widget {
        bottom: 15px !important;
        right: 15px !important;
    }
}