.zibll-chat-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #0073aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transition: all 0.3s ease;
    color: #fff;
}

.zibll-chat-button:hover {
    background: #006799;
    transform: scale(1.1);
}

.zibll-chat-button svg {
    width: 24px;
    height: 24px;
}

.zibll-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.zibll-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.zibll-chat-modal.active {
    display: block;
}

.zibll-chat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.zibll-chat-modal-content {
    position: absolute;
    right: 30px;
    bottom: 100px;
    width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.zibll-chat-header {
    background: #0073aa;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zibll-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zibll-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zibll-chat-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.zibll-chat-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.zibll-chat-status.online {
    background: #4caf50;
}

.zibll-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.zibll-chat-body {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f5f7fa;
}

.zibll-chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.zibll-chat-message-bot {
    justify-content: flex-start;
}

.zibll-chat-message-user {
    justify-content: flex-end;
}

.zibll-chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zibll-chat-message-content {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.zibll-chat-message-bot .zibll-chat-message-content {
    background: #fff;
    color: #333;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.zibll-chat-message-user .zibll-chat-message-content {
    background: #0073aa;
    color: #fff;
    border-top-right-radius: 4px;
}

.zibll-chat-footer {
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.zibll-chat-input-area {
    flex: 1;
}

.zibll-chat-input-area textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.zibll-chat-input-area textarea:focus {
    border-color: #0073aa;
}

.zibll-chat-send {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s;
}

.zibll-chat-send:hover {
    background: #006799;
}

.zibll-chat-send i {
    font-size: 18px;
}

.zibll-chat-leave-form {
    padding: 20px;
    background: #f5f7fa;
    border-top: 1px solid #eee;
}

.zibll-chat-leave-form h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.zibll-chat-leave-field {
    margin-bottom: 12px;
}

.zibll-chat-leave-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.zibll-chat-leave-field input,
.zibll-chat-leave-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.zibll-chat-leave-field input:focus,
.zibll-chat-leave-field textarea:focus {
    border-color: #0073aa;
}

.zibll-chat-leave-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background 0.3s;
}

.zibll-chat-leave-submit:hover {
    background: #006799;
}

.zibll-chat-leave-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.3s;
}

.zibll-chat-leave-cancel:hover {
    border-color: #0073aa;
    color: #0073aa;
}

@media (max-width: 480px) {
    .zibll-chat-modal-content {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 80px;
    }
    
    .zibll-chat-body {
        height: 300px;
    }
    
    .zibll-chat-message-content {
        max-width: 85%;
    }
}