button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
.btn:focus-visible,
input[type="button"]:focus,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

#addCommandBtn,
#addCommandBtn:focus,
#addCommandBtn:active,
#addCommandBtn:focus-visible,
#addCommandBtn:hover,
#addCommandBtn:disabled {
    background: linear-gradient(135deg, #8a2be2 0%, #ff00ff 100%) !important;
    border: none !important;
    color: white !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#addCommandBtn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-shadow: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.template-creator-container button:not(.remove-command) {
    -webkit-tap-highlight-color: transparent !important;
}

.remove-command,
.remove-command:focus,
.remove-command:active {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(220, 20, 60, 0.2) 100%) !important;
    border: 2px solid rgba(255, 0, 0, 0.3) !important;
    color: #ff6b6b !important;
}

.template-creator-container .modal-actions button {
    -webkit-tap-highlight-color: transparent !important;
}

.template-creator-container .btn-primary:focus,
.template-creator-container .btn-primary:active {
    background: linear-gradient(135deg, #8a2be2 0%, #ff00ff 100%) !important;
}

.template-creator-container .btn-secondary:focus,
.template-creator-container .btn-secondary:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(138, 43, 226, 0.3) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent !important;
    }
    
    #addCommandBtn {
        -webkit-appearance: none !important;
        background: linear-gradient(135deg, #8a2be2 0%, #ff00ff 100%) !important;
    }
    
    @supports (-webkit-touch-callout: none) {
        #addCommandBtn {
            -webkit-appearance: none !important;
            background: linear-gradient(135deg, #8a2be2 0%, #ff00ff 100%) !important;
        }
    }
}